Date: Mon, 9 May 2011 10:57:45 -0700 From: "Devin Teske" <dteske@vicor.com> To: "'Gordon Tetlow'" <gordon@tetlows.org> Cc: freebsd-rc@freebsd.org Subject: RE: [RFC][Change-Request] Create usefulness in rc.subr etc/rc.conf.d/*.conf namespace. Message-ID: <00a401cc0e72$9f4ebd60$ddec3820$@vicor.com> In-Reply-To: <BANLkTimqhu215ZdHwx=fHqu33NXj2pYpvw@mail.gmail.com> References: <20110508191336.GC3527@DataIX.net> <BANLkTi=hozQBLUC15NsF2rky2OfFW=t_RQ@mail.gmail.com> <01d201cc0e6c$47d4b180$d77e1480$@vicor.com> <BANLkTimqhu215ZdHwx=fHqu33NXj2pYpvw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> -----Original Message----- > From: Gordon Tetlow [mailto:gordon@tetlows.org] > Sent: Monday, May 09, 2011 10:32 AM > To: Devin Teske > Cc: freebsd-rc@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@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. _____________
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00a401cc0e72$9f4ebd60$ddec3820$>