summaryrefslogtreecommitdiffstats
path: root/security/racoon/files
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2002-11-03 15:43:59 +0000
committersumikawa <sumikawa@FreeBSD.org>2002-11-03 15:43:59 +0000
commit7685ff860ede09a2d1ab77ae8e3f92735dfc3bbc (patch)
tree3da949856a2ec58fbdc76e175b0a9b9d293a1c8f /security/racoon/files
parente3c49ac3d221afec199059174af91f8f35319ad2 (diff)
downloadFreeBSD-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.sh18
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
OpenPOWER on IntegriCloud