diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-07-03 16:09:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-07-03 16:09:07 +0000 |
commit | 190388d73834ef7b6b640f3c8847f1851c810876 (patch) | |
tree | 03bc918a0e7d55c188dca4bc99fae07a576f6a98 /etc | |
parent | fb4a823d92ba09457cf76befa7f6ea5387b4c6d3 (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.subr | 5 |
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 |