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
pgpeX6YjzazDY.pgp
Description: PGP signature
