Browse Source

ensure rc.d/nsd uses a correct exit code as per rc.subr(8); reported by

Ben Lovett, simpler diff from aja@
OPENBSD_5_6
sthen 10 years ago
parent
commit
20511ac3a4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/nsd

+ 2
- 2
src/etc/rc.d/nsd View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# $OpenBSD: nsd,v 1.7 2014/05/07 02:46:05 sthen Exp $
# $OpenBSD: nsd,v 1.8 2014/06/25 12:33:33 sthen Exp $
daemon="/usr/sbin/nsd-control" daemon="/usr/sbin/nsd-control"
daemon_flags="-c /var/nsd/etc/nsd.conf" daemon_flags="-c /var/nsd/etc/nsd.conf"
@ -24,7 +24,7 @@ rc_start() {
} }
rc_check() { rc_check() {
${daemon} ${daemon_flags} status
${daemon} ${daemon_flags} status || return 1
} }
rc_reload() { rc_reload() {


Loading…
Cancel
Save