aboutsummaryrefslogblamecommitdiffstats
path: root/main/bind/bind.initd
blob: 3284ec853a862dedee32e36cb7379142fc179ffd (plain) (tree)
1
2
3
4
5
6
7
8
                 
 

                      


                
                      



                   
         



                                                           



               

                                                           

               
#!/sbin/runscript

NAME=named
DAEMON=/usr/sbin/$NAME

depend() {
	need net
	after firewall
	use logger
	provide dns
}

start() {
	ebegin "Starting ${NAME}"
	start-stop-daemon --start --quiet --background \
		--exec ${DAEMON} --nicelevel ${NICELEVEL} \
		-- -u ${USER} -n ${CPU} ${OPTS}
	eend $?
}

stop() {
	ebegin "Stopping ${NAME}"
	start-stop-daemon --stop --quiet --pidfile $PIDFILE
	eend $?
}