aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDaniel Tameling <tamelingdaniel@gmail.com>2023-07-01 08:43:40 +0000
committerEd Maste <emaste@FreeBSD.org>2023-09-21 23:28:40 +0000
commitba793728a840041e93e38bcbff4a7233dc63b722 (patch)
tree345c22f02d4b423bbe7b4c0cc1f9eab3f5a44a9e /libexec
parent0a22677bce28bc9ad39f219b726b5791852d84ba (diff)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rc/rc.subr5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index 17ca904ff1e7..332718dc6f2c 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1041,13 +1041,14 @@ run_rc_command()
continue
fi
# if ${rcvar} is set, $1 is not "rcvar", "describe",
- # "enable" or "delete", and ${rc_pid} is not set, run:
+ # "enable", "delete" or "status", and ${rc_pid} is
+ # not set, run:
# checkyesno ${rcvar}
# and return if that failed
#
if [ -n "${rcvar}" -a "$rc_arg" != "rcvar" -a "$rc_arg" != "stop" \
-a "$rc_arg" != "delete" -a "$rc_arg" != "enable" \
- -a "$rc_arg" != "describe" ] ||
+ -a "$rc_arg" != "describe" -a "$rc_arg" != "status" ] ||
[ -n "${rcvar}" -a "$rc_arg" = "stop" -a -z "${rc_pid}" ]; then
if ! checkyesno ${rcvar}; then
if [ -n "${rc_quiet}" ]; then