e3738800cc
Set and using $pidfile as suggested by joerg@ ok hubertf@
18 lines
333 B
Bash
Executable file
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"
|