rc.subr(8): Set procname to command by default to match documentation The rc.subr(8) manual reads that variable procname defaults to the value of command. However, procname is never set to any value in the run_rc_command. This patch sets procname to the value of command if procname is unset or empty. As a result it is going to be possible to use the procname variable in *cmd functions (e.g., start_cmd).
Yes, I confirm that _procname is not used anywhere in src/libexec/rc.
It used as a local variable (although it is never declared local) in some rc.subr functions but it is always assigned a value (so it never depends on the value that could be passed over by the caller).