summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-07-03 16:09:07 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-07-03 16:09:07 +0000
commit190388d73834ef7b6b640f3c8847f1851c810876 (patch)
tree03bc918a0e7d55c188dca4bc99fae07a576f6a98 /etc
parentfb4a823d92ba09457cf76befa7f6ea5387b4c6d3 (diff)
let reload report (ok) or (failed) just like all other actions;
ajacoutot@ and robert@ couldn't really remember the reason to be different, either
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/rc.subr5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index 21cb896902c..8f6b33e6cca 100644
--- a/etc/rc.d/rc.subr
+++ b/etc/rc.d/rc.subr
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.subr,v 1.38 2011/06/20 21:26:27 schwarze Exp $
+# $OpenBSD: rc.subr,v 1.39 2011/07/03 16:09:06 schwarze Exp $
# Default functions and variables used by rc.d(8) scripts.
@@ -100,8 +100,9 @@ rc_cmd() {
rc_exit ok
;;
reload)
- rc_do rc_check || exit 1
+ rc_do rc_check || rc_exit failed
rc_do rc_reload || rc_exit failed
+ rc_exit ok
;;
restart)
/etc/rc.d/${_name} stop && /etc/rc.d/${_name} start