23 lines
273 B
Text
23 lines
273 B
Text
|
#!/bin/sh
|
||
|
#
|
||
|
#
|
||
|
|
||
|
. /etc/rc.subr
|
||
|
|
||
|
name="nsd"
|
||
|
rcvar=${name}
|
||
|
command="/usr/pkg/bin/${name}"
|
||
|
nsd_flags="-t /usr/pkg/etc/nsd.tcl -u nobody"
|
||
|
nsd_user="root"
|
||
|
|
||
|
# set defaults
|
||
|
if [ -r /etc/rc.conf ]
|
||
|
then
|
||
|
. /etc/rc.conf
|
||
|
else
|
||
|
eval ${rcvar}=YES
|
||
|
fi
|
||
|
|
||
|
run_rc_command "$1"
|
||
|
|