aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.subr
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.subr')
-rw-r--r--libexec/rc/rc.subr5
1 files changed, 5 insertions, 0 deletions
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index b027fa5facf4..7144c3cbfce9 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -958,6 +958,11 @@ run_rc_command()
_pidcmd='rc_pid=$(check_process '"$_procname $command_interpreter"')'
fi
_keywords="${_keywords} status poll"
+ else
+ if [ ! -z "${status_cmd}" ]
+ then
+ _keywords="${_keywords} status"
+ fi
fi
if [ -z "$rc_arg" ]; then