summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-10-15 23:20:23 +0000
committerdougb <dougb@FreeBSD.org>2009-10-15 23:20:23 +0000
commita1878de77cd21b152dd66c09c2e2aebbe924b95f (patch)
tree4b8a374b970c6ebe3757112f24578bc71e347e67 /etc/rc.subr
parent90b45d56e049b5deec9586a1b8d063f29a080659 (diff)
downloadFreeBSD-src-a1878de77cd21b152dd66c09c2e2aebbe924b95f.zip
FreeBSD-src-a1878de77cd21b152dd66c09c2e2aebbe924b95f.tar.gz
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 fa372dd..2e502db 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -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=
OpenPOWER on IntegriCloud