diff options
author | Camiel Dobbelaar <camield@cvs.openbsd.org> | 2012-01-16 17:51:43 +0000 |
---|---|---|
committer | Camiel Dobbelaar <camield@cvs.openbsd.org> | 2012-01-16 17:51:43 +0000 |
commit | 37581d9f8e523a200c25366da3ac937d35b0b36a (patch) | |
tree | 8e13c6eb986c4d70c9c15d5a46f28913da6f57c9 | |
parent | 259019888a5790818d4076aa3ef276769b07e04a (diff) |
Use nsdc to reliably stop nsd.
ok ajacoutot sthen
-rw-r--r-- | etc/rc.d/nsd | 12 |
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 |