Browse Source

let reload report (ok) or (failed) just like all other actions;

ajacoutot@ and robert@ couldn't really remember the reason to be different,
either
OPENBSD_5_0
schwarze 13 years ago
parent
commit
109aa56fb5
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/etc/rc.d/rc.subr

+ 3
- 2
src/etc/rc.d/rc.subr View File

@ -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


Loading…
Cancel
Save