aboutsummaryrefslogtreecommitdiffstats
path: root/main/bind/bind.initd
blob: 3284ec853a862dedee32e36cb7379142fc179ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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 $?
}