conf/95162: [patch] Missing feature in rc.subr
Alexander Botero-Lowry
alex at foxybanana.com
Sat Jun 10 00:41:03 UTC 2006
Florent Thoumie <flz at FreeBSD.org> wrote:
> On Fri, 2006-06-09 at 17:31 -0500, Alexander Botero-Lowry wrote:
> > Using /etc/rc.conf.d would be better. You don't have to bother doing reinplace, you can just override the file when you have a configval change.
>
> No, please use ${prefix}/etc/rc.conf.d/. And anyway you still need to
Erm. I don't know how you would be able to use ${prefix}/etc/rc.conf.d/
considering that /etc/rc.subr does:
if [ -f /etc/rc.conf.d/"$_command" ]; then
debug "Sourcing /etc/rc.conf.d/${_command}"
. /etc/rc.conf.d/"$_command"
fi
That is the only reference to *rc.conf.d* in rc.subr. So clearly rc.subr would
need to be modified to be able to handle rc.conf.d/$_command files in $LOCALBASE. Even more work to handle them in $PREFIX.
> use 'sed -i' because people might use this file for custom flags.
>
I noticed that while reading rc.subr manpage after sending the email, my
apologies for the quick response.
> --
> Florent Thoumie
> flz at FreeBSD.org
> FreeBSD Committer
More information about the freebsd-rc
mailing list