From 30dbf0a06c29bdff22a756c7a168bd679d2d7417 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sun, 17 Aug 2014 14:41:03 +0000 Subject: [PATCH] When running interactively, display the output of the "check" action (ok or failed) like we do with all other actions. ok jung@ rpe@ --- etc/rc.d/rc.subr | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.20.1