diff options
author | khorben <khorben@pkgsrc.org> | 2012-10-01 00:41:27 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2012-10-01 00:41:27 +0000 |
commit | 8d67c6531951ef174432635cd184c4ce7716a803 (patch) | |
tree | 7fa1b6c37d5f32d6c0f4bc39e3c396a8087e3322 /net/vpnc/files | |
parent | ae926236b59013c5ae18bfe7cf2dcf3acf833bdf (diff) | |
download | pkgsrc-8d67c6531951ef174432635cd184c4ce7716a803.tar.gz |
Added a startup script for net/vpnc, as mentioned on tech-pkg@
Set and using $pidfile as suggested by joerg@
ok hubertf@
Diffstat (limited to 'net/vpnc/files')
-rwxr-xr-x | net/vpnc/files/vpnc.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/vpnc/files/vpnc.sh b/net/vpnc/files/vpnc.sh new file mode 100755 index 00000000000..8a53c94b4e4 --- /dev/null +++ b/net/vpnc/files/vpnc.sh @@ -0,0 +1,18 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: vpnc.sh,v 1.1 2012/10/01 00:41:27 khorben Exp $ +# + +# PROVIDE: vpnc +# REQUIRE: NETWORKING + +[ -f /etc/rc.subr ] && . /etc/rc.subr + +name="vpnc" +rcvar=$name +command="@PREFIX@/sbin/${name}" +pidfile="@VARBASE@/run/${name}.pid" +vpnc_flags="--pid-file ${pidfile}" + +load_rc_config $name +run_rc_command "$1" |