pkgsrc/net/vpnc/files/vpnc.sh
khorben e3738800cc Added a startup script for net/vpnc, as mentioned on tech-pkg@
Set and using $pidfile as suggested by joerg@

ok hubertf@
2012-10-01 00:41:27 +00:00

18 lines
333 B
Bash
Executable file

#!@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"