summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-11-07 22:59:04 +0000
committerdougb <dougb@FreeBSD.org>2009-11-07 22:59:04 +0000
commitbeaf9134e9babd4d14230d201930b5adbca7c505 (patch)
tree04d72fa6589b1a147a7863d088aef245771b96f6 /etc/rc.subr
parentee46d4e045a31d9e3601ac86652f9106ed9802f2 (diff)
downloadFreeBSD-src-beaf9134e9babd4d14230d201930b5adbca7c505.zip
FreeBSD-src-beaf9134e9babd4d14230d201930b5adbca7c505.tar.gz
MFC r198162:
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.
Diffstat (limited to 'etc/rc.subr')
-rw-r--r--etc/rc.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index c6f2412..acbf627 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -588,7 +588,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=
OpenPOWER on IntegriCloud