Date: Thu, 15 Oct 2009 23:20:23 +0000 (UTC) From: Doug Barton <dougb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r198162 - head/etc Message-ID: <200910152320.n9FNKNCc087417@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dougb Date: Thu Oct 15 23:20:23 2009 New Revision: 198162 URL: http://svn.freebsd.org/changeset/base/198162 Log: 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. Modified: head/etc/rc.subr Modified: head/etc/rc.subr ============================================================================== --- head/etc/rc.subr Thu Oct 15 21:20:12 2009 (r198161) +++ head/etc/rc.subr Thu Oct 15 23:20:23 2009 (r198162) @@ -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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910152320.n9FNKNCc087417>