diff options
author | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2005-09-05 14:13:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2005-09-05 14:13:42 +0000 |
commit | 9eebd2f1314e10cd7dc029b410a93d3817bd17f9 (patch) | |
tree | 0bdfe36b22029b5d375a842d3c999038b77e10aa /security/ipsec-tools/files | |
parent | 90a1595ac20bfef89a82652a0dd97fd82479ba82 (diff) |
Notes
Diffstat (limited to 'security/ipsec-tools/files')
-rw-r--r-- | security/ipsec-tools/files/racoon.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/security/ipsec-tools/files/racoon.sh b/security/ipsec-tools/files/racoon.sh new file mode 100644 index 000000000000..0c615586a558 --- /dev/null +++ b/security/ipsec-tools/files/racoon.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# Start or stop racoon +# $FreeBSD: /tmp/pcvs/ports/security/ipsec-tools/files/Attic/racoon.sh,v 1.1 2005-09-05 14:13:42 vsevolod Exp $ + +# PROVIDE: racoon +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown +# +# NOTE for FreeBSD 5.0+: +# If you want this script to start with the base rc scripts +# move racoon.sh to /etc/rc.d/racoon + +prefix=%%PREFIX%% + +# Define these racoon_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/racoon +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# +[ -z "$racoon_enable" ] && racoon_enable="YES" # Enable racoon +#racoon_program="${prefix}/sbin/racoon" # Location of racoon +#racoon_flags="" # Flags to racoon program + +. %%RC_SUBR%% + +name="racoon" +rcvar=`set_rcvar` +command="${prefix}/sbin/racoon" +pidfile="/var/run/racoon.pid" +required_files="${prefix}/etc/racoon/racoon.conf" +stop_postcmd="racoon_poststop" + +racoon_poststop() { + /bin/rm -f ${pidfile} +} + +load_rc_config $name +run_rc_command "$1" |