summaryrefslogtreecommitdiff
path: root/etc/rc.d/nsd
blob: 72dd1267fb847a5abef1298fcb73a01ad8eb003a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# $OpenBSD: nsd,v 1.4 2012/08/04 15:28:39 ajacoutot Exp $

daemon="/usr/sbin/nsd"

. /etc/rc.d/rc.subr

rc_reload=NO
rc_usercheck=NO

daemon_ctl="/usr/sbin/nsdc"

rc_stop() {
	${daemon_ctl} stop
}

rc_check() {
	${daemon_ctl} running
}

rc_cmd $1