[PATCH] Allow use of program path overrides
Glen Barber
gjb at FreeBSD.org
Thu Sep 6 22:10:41 UTC 2012
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.
> > 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@ .
> > 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. :)
>
Ok. I'll bite. "Why not?"
Glen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20120906/55a0d3fb/attachment.pgp
More information about the freebsd-rc
mailing list