From owner-freebsd-rc@FreeBSD.ORG Mon May 9 17:58:31 2011 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E8C4106564A for ; Mon, 9 May 2011 17:58:31 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id EC56D8FC18 for ; Mon, 9 May 2011 17:58:30 +0000 (UTC) Received: from SBHFISLREXT03 ([10.132.254.62]) by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p49HwUTO023670; Mon, 9 May 2011 12:58:30 -0500 Received: from SBHFISLTCGW07.FNFIS.COM (Not Verified[10.132.248.135]) by SBHFISLREXT03 with MailMarshal (v6, 5, 4, 7535) id ; Mon, 09 May 2011 12:58:42 -0500 Received: from SBHFISLTCGW04.FNFIS.COM ([10.132.248.123]) by SBHFISLTCGW07.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 May 2011 12:58:30 -0500 Received: from dtwin ([10.132.254.136]) by SBHFISLTCGW04.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 9 May 2011 12:58:28 -0500 From: "Devin Teske" To: "'Gordon Tetlow'" References: <20110508191336.GC3527@DataIX.net> <01d201cc0e6c$47d4b180$d77e1480$@vicor.com> In-Reply-To: Date: Mon, 9 May 2011 10:57:45 -0700 Organization: Vicor, Inc. Message-ID: <00a401cc0e72$9f4ebd60$ddec3820$@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJHQEL1l7iLvsgf0B1IcBXW0H5UCQBs/JiEAgK+meUB2K/ku5NsIHIw Content-Language: en-us X-OriginalArrivalTime: 09 May 2011 17:58:28.0869 (UTC) FILETIME=[B3929350:01CC0E72] Cc: freebsd-rc@freebsd.org Subject: RE: [RFC][Change-Request] Create usefulness in rc.subr etc/rc.conf.d/*.conf namespace. X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2011 17:58:31 -0000 > -----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 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. _____________