From: ajacoutot Date: Sun, 17 Aug 2014 14:41:03 +0000 (+0000) Subject: When running interactively, display the output of the "check" action X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=30dbf0a06c29bdff22a756c7a168bd679d2d7417;p=openbsd When running interactively, display the output of the "check" action (ok or failed) like we do with all other actions. ok jung@ rpe@ --- diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index 0147d18975a..bb67c73d68a 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.80 2014/08/11 20:24:57 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.81 2014/08/17 14:41:03 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -191,7 +191,9 @@ rc_cmd() { case "$1" in check) - _rc_do rc_check + echo $_n "${INRC:+ }${_name}" + _rc_do rc_check && _rc_exit ok + _rc_exit failed ;; start) if [ X"${daemon_flags}" = X"NO" ]; then