tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Startup script for vpnc
On Sat, Sep 29, 2012 at 03:22:54AM +0000, Pierre Pronchery wrote:
> #!@RCD_SCRIPTS_SHELL@
> #
> # $NetBSD$
> #
>
> # PROVIDE: vpnc
> # REQUIRE: NETWORKING
>
> [ -f /etc/rc.subr ] && . /etc/rc.subr
>
> name="vpnc"
> rcvar=$name
> command="@PREFIX@/sbin/${name}"
> vpnc_flags="--pid-file @VARBASE@/run/${name}.pid"
>
> load_rc_config $name
> run_rc_command "$1"
Please set and use pidfile, that way it is used by the various helper
scripts.
Joerg
Home |
Main Index |
Thread Index |
Old Index