#!/bin/sh
#
# $FreeBSD: ports/dns/nsd2/files/nsd.sh.in,v 1.1 2006/10/31 17:27:32 alepulver Exp $
#
# PROVIDE: nsd
# REQUIRE: DAEMON
#
# 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"


syntax highlighted by Code2HTML, v. 0.9.1