diff options
Diffstat (limited to 'dns/nsd/files/nsd.sh.tmpl')
-rw-r--r-- | dns/nsd/files/nsd.sh.tmpl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dns/nsd/files/nsd.sh.tmpl b/dns/nsd/files/nsd.sh.tmpl new file mode 100644 index 000000000000..0b6b35f1d65b --- /dev/null +++ b/dns/nsd/files/nsd.sh.tmpl @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: nsd +# REQUIRE: DAEMON +# KEYWORD: FreeBSD +# +# Add the following line to /etc/rc.conf to enable nsd: +# +# nsd_enable="YES" +# + +. %%RC_SUBR%% + +name=nsd +rcvar=`set_rcvar` + +prefix=%%PREFIX%% + +required_files=%%NSDDIR%%/nsd.zones + +command=/usr/local/sbin/${name} +pidfile=/var/run/${name}.pid + +# set defaults + +nsd_enable=${nsd_enable:-"NO"} +nsd_flags=${nsd_flags:-""} + +load_rc_config ${name} +run_rc_command "$1" + |