Date: Fri, 09 Jun 2006 19:38:38 -0500 From: Alexander Botero-Lowry <alex@foxybanana.com> To: flz@FreeBSD.org, alex@foxybanana.com Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/95162: [patch] Missing feature in rc.subr Message-ID: <200606100038.k5A0cdU5078258@Laptop.mine.box> In-Reply-To: <1149897016.31327.2.camel@localhost> References: <200606091826.k59IQfmo057494@freefall.freebsd.org> <20060609222512.Y15476@erdgeist.org> <20060610001442.U15476@erdgeist.org> <200606092231.k59MVFNQ077781@Laptop.mine.box> <1149897016.31327.2.camel@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
Florent Thoumie <flz@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@FreeBSD.org > FreeBSD Committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606100038.k5A0cdU5078258>