[RFC][Change-Request] Create usefulness in rc.subr etc/rc.conf.d/*.conf namespace.

Devin Teske dteske at vicor.com
Mon May 9 17:58:31 UTC 2011


> -----Original Message-----
> From: Gordon Tetlow [mailto:gordon at tetlows.org]
> Sent: Monday, May 09, 2011 10:32 AM
> To: Devin Teske
> Cc: freebsd-rc at freebsd.org
> Subject: Re: [RFC][Change-Request] Create usefulness in rc.subr
> etc/rc.conf.d/*.conf namespace.
> 
> On Mon, May 9, 2011 at 10:12 AM, Devin Teske <dteske at vicor.com> wrote:
> > The solution is to have a script that can tell you these two details:
> >
> > 1. What is the final value of ``*_enable''
> > 2. Which file assigns said final value
> >
> > If you have those two pieces of information, then unraveling a twisted
> > configuration is easier.
> >
> > [Re-]welcome my sysrc(8) script:
> 
> While this is a very cool script, I have to wonder how far we have strayed if
we
> require another tool to tell us how the system is configured.

*cough* sysctl(8) *cough*


> Surely we should be
> aiming for simplicity in our implementation and not something incredibly
> complex.

I modeled sysrc(8) after sysctl(8). If you know how to use sysctl(8), you
already know how to use sysrc(8). I can't make it any simpler.


> After Jason's proposal, we would have the following list of configuration
files:
> 
> /etc/defaults/rc.conf
> /etc/rc.conf
> /etc/rc.conf.local
> /etc/rc.conf.d/{name}

I suggest we kill the single line above (/etc/rc.conf.d/{name}) in favor of the
below.


> /etc/rc.conf.d/*.conf
> 
> Personally, I think this is too many.


If we make the last line replace the previous declaration, then the list neither
grows nor shrinks, yet becomes simplified.
-- 
Devin

_____________

The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
_____________


More information about the freebsd-rc mailing list