Browse Source

Use nsdc to reliably stop nsd.

ok ajacoutot sthen
OPENBSD_5_1
camield 13 years ago
parent
commit
8e1bed947f
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      src/etc/rc.d/nsd

+ 11
- 1
src/etc/rc.d/nsd View File

@ -1,6 +1,6 @@
#!/bin/sh #!/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" daemon="/usr/sbin/nsd"
@ -8,4 +8,14 @@ daemon="/usr/sbin/nsd"
rc_reload=NO rc_reload=NO
daemon_ctl="/usr/sbin/nsdc"
rc_stop() {
${daemon_ctl} stop
}
rc_check() {
${daemon_ctl} running
}
rc_cmd $1 rc_cmd $1

Loading…
Cancel
Save