summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2014-06-25 12:33:34 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2014-06-25 12:33:34 +0000
commite8bff2c2ccce2dc695098b17cf6299f43e0720ce (patch)
tree1fb5388829a632f9cb54c7a2159af4e9717621d9 /etc
parent9e540bed2cd2b982812129097e89783e75533d6a (diff)
ensure rc.d/nsd uses a correct exit code as per rc.subr(8); reported by
Ben Lovett, simpler diff from aja@
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/nsd4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/nsd b/etc/rc.d/nsd
index a56fa89065f..b1971f429a5 100644
--- a/etc/rc.d/nsd
+++ b/etc/rc.d/nsd
@@ -1,6 +1,6 @@
#!/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_flags="-c /var/nsd/etc/nsd.conf"
@@ -24,7 +24,7 @@ rc_start() {
}
rc_check() {
- ${daemon} ${daemon_flags} status
+ ${daemon} ${daemon_flags} status || return 1
}
rc_reload() {