Index: libexec/rc/rc.subr =================================================================== --- libexec/rc/rc.subr +++ libexec/rc/rc.subr @@ -948,14 +948,14 @@ _keywords="start stop restart rcvar enable disable delete enabled describe extracommands $extra_commands" rc_pid= _pidcmd= - _procname=${procname:-${command}} + : "${procname:=${command}}" # setup pid check command - if [ -n "$_procname" ]; then + if [ -n "$procname" ]; then if [ -n "$pidfile" ]; then - _pidcmd='rc_pid=$(check_pidfile '"$pidfile $_procname $command_interpreter"')' + _pidcmd='rc_pid=$(check_pidfile '"$pidfile $procname $command_interpreter"')' else - _pidcmd='rc_pid=$(check_process '"$_procname $command_interpreter"')' + _pidcmd='rc_pid=$(check_process '"$procname $command_interpreter"')' fi _keywords="${_keywords} status poll" fi