summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2012-01-16 17:51:43 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2012-01-16 17:51:43 +0000
commit37581d9f8e523a200c25366da3ac937d35b0b36a (patch)
tree8e13c6eb986c4d70c9c15d5a46f28913da6f57c9
parent259019888a5790818d4076aa3ef276769b07e04a (diff)
Use nsdc to reliably stop nsd.
ok ajacoutot sthen
-rw-r--r--etc/rc.d/nsd12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/rc.d/nsd b/etc/rc.d/nsd
index b956b967048..ac69bba0c58 100644
--- a/etc/rc.d/nsd
+++ b/etc/rc.d/nsd
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: nsd,v 1.2 2011/12/13 13:45:38 ajacoutot Exp $
+# $OpenBSD: nsd,v 1.3 2012/01/16 17:51:42 camield Exp $
daemon="/usr/sbin/nsd"
@@ -8,4 +8,14 @@ daemon="/usr/sbin/nsd"
rc_reload=NO
+daemon_ctl="/usr/sbin/nsdc"
+
+rc_stop() {
+ ${daemon_ctl} stop
+}
+
+rc_check() {
+ ${daemon_ctl} running
+}
+
rc_cmd $1