summaryrefslogtreecommitdiff
path: root/security/racoon/files
diff options
context:
space:
mode:
authorMunechika SUMIKAWA <sumikawa@FreeBSD.org>2002-11-03 15:43:59 +0000
committerMunechika SUMIKAWA <sumikawa@FreeBSD.org>2002-11-03 15:43:59 +0000
commit1e3c877f0532697ca1f59b5b71b6ee70a20a1db6 (patch)
treef8af1e6b4223cbacad5c4ecab33f4d954097a20c /security/racoon/files
parentCorrect pkg-plist. (diff)
Add startup script.
Submitted by: Sam Pikesley <samdavidpikesley@yahoo.co.uk>
Notes
Notes: svn path=/head/; revision=69354
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 000000000000..d6a5c1b3098a
--- /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