Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2012 15:03:30 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        rc@FreeBSD.org
Subject:   Re: [PATCH] Allow use of program path overrides
Message-ID:  <50491DB2.1020702@FreeBSD.org>
In-Reply-To: <20120906195706.GD1332@glenbarber.us>
References:  <20120906195706.GD1332@glenbarber.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/6/2012 12:57 PM, Glen Barber wrote:
> Hi,
> 
> Many rc(8) scripts have corresponding 'foo_program="/path/to/foo"' 
> entries in etc/defaults/rc.conf .

These are usually only added for things that might get overridden by
something from ports.

> However, some are missing the functionality to override $command 
> correctly.

rc.subr should already do that. Have you tested it?

> The attached patch:
> 
> - Adds missing "${name}_program=/path/to/${name}" entries to 
> defaults/rc.conf

Please don't do that. :)

> - Adds missing functionality of setting 
> "command=${foo_program:-/path/to/foo}" in corresponding rc(8) 
> scripts.

Please don't do this either. :)


-- 

    I am only one, but I am one.  I cannot do everything, but I can do
    something.  And I will not let what I cannot do interfere with what
    I can do.
			-- Edward Everett Hale, (1822 - 1909)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50491DB2.1020702>