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