pkgsrc/security/cfs/files/cfsd.sh
jmmv e569e99cf2 Convert the rc.d script to the rc.subr framework and use RCD_SCRIPTS from
bsd.pkg.install.mk to handle its generation and installation.
While here, switch to buildlink2.  Bump PKGREVISION to 1.
2003-07-31 10:05:52 +00:00

27 lines
527 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: cfsd.sh,v 1.4 2003/07/31 10:05:53 jmmv Exp $
#
# PROVIDE: cfsd
# REQUIRE: mountd
#
# To start cfsd at startup, copy this script to /etc/rc.d and set
# cfs=YES in /etc/rc.conf.
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="cfsd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
command_args="> /dev/null 2>&1"
required_vars="mountd rpcbind"
if [ -f /etc/rc.subr ]; then
load_rc_config "$name"
run_rc_command "$1"
else
printf " $name"
eval ${command} ${cfsd_flags} ${command_args}
fi