diff options
author | sumikawa <sumikawa@FreeBSD.org> | 2002-11-03 15:43:59 +0000 |
---|---|---|
committer | sumikawa <sumikawa@FreeBSD.org> | 2002-11-03 15:43:59 +0000 |
commit | 7685ff860ede09a2d1ab77ae8e3f92735dfc3bbc (patch) | |
tree | 3da949856a2ec58fbdc76e175b0a9b9d293a1c8f /security/racoon/files | |
parent | e3c49ac3d221afec199059174af91f8f35319ad2 (diff) | |
download | FreeBSD-ports-7685ff860ede09a2d1ab77ae8e3f92735dfc3bbc.zip FreeBSD-ports-7685ff860ede09a2d1ab77ae8e3f92735dfc3bbc.tar.gz |
Add startup script.
Submitted by: Sam Pikesley <samdavidpikesley@yahoo.co.uk>
Diffstat (limited to 'security/racoon/files')
-rw-r--r-- | security/racoon/files/racoon.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/security/racoon/files/racoon.sh b/security/racoon/files/racoon.sh new file mode 100644 index 0000000..d6a5c1b --- /dev/null +++ b/security/racoon/files/racoon.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + start) + if [ -x %PREFIX%/sbin/racoon ]; then + %PREFIX%/sbin/racoon -f %PREFIX%/etc/racoon/racoon.conf && echo -n ' racoon' + fi + ;; + + stop) + /usr/bin/killall racoon && echo -n ' racoon' + ;; + + *) + echo "Usage: `basename $0` { start | stop }" + exit 64 + ;; +esac |