Allow $name_program to override $command in a more robust way that

will not cause the value to be null if $command is not set.
This commit is contained in:
Doug Barton 2009-10-15 23:20:23 +00:00
parent 290512231a
commit 0e22665fc7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198162

View File

@ -616,7 +616,7 @@ run_rc_command()
esac
eval _override_command=\$${name}_program
command=${command:+${_override_command:-$command}}
command=${_override_command:-$command}
_keywords="start stop restart rcvar $extra_commands"
rc_pid=