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:
parent
290512231a
commit
0e22665fc7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198162
@ -616,7 +616,7 @@ run_rc_command()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
eval _override_command=\$${name}_program
|
eval _override_command=\$${name}_program
|
||||||
command=${command:+${_override_command:-$command}}
|
command=${_override_command:-$command}
|
||||||
|
|
||||||
_keywords="start stop restart rcvar $extra_commands"
|
_keywords="start stop restart rcvar $extra_commands"
|
||||||
rc_pid=
|
rc_pid=
|
||||||
|
Loading…
Reference in New Issue
Block a user