From 109aa56fb515d999f727a094204aa394ae1f3c54 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Sun, 3 Jul 2011 16:09:06 +0000 Subject: [PATCH] let reload report (ok) or (failed) just like all other actions; ajacoutot@ and robert@ couldn't really remember the reason to be different, either --- src/etc/rc.d/rc.subr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 21cb8969..8f6b33e6 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/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