[PATCH] Allow use of program path overrides

Doug Barton dougb at FreeBSD.org
Thu Sep 6 23:36:47 UTC 2012


On 9/6/2012 3:10 PM, Glen Barber wrote:
> On Thu, Sep 06, 2012 at 03:03:30PM -0700, Doug Barton wrote:
>> 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.
>>
> 
> I can think of valid reasons one might want to do this otherwise.

Me too, but I would prefer not to clutter defaults/rc.conf without good
reason. The fact that no variable is in there doesn't mean that users
can't still do it if they need to.

>>> However, some are missing the functionality to override $command 
>>> correctly.
>>
>> rc.subr should already do that. Have you tested it?
>>
> 
> Yes.  See the previous thread on -rc@ .

David never mentioned that he actually tested it, and just confirmed
that he didn't. Did you actually test it?

Doug

-- 

    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)


More information about the freebsd-rc mailing list