From owner-freebsd-rc@FreeBSD.ORG Mon May 9 17:32:19 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 A7F081065675 for ; Mon, 9 May 2011 17:32:19 +0000 (UTC) (envelope-from gordon@tetlows.org) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.212.176]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1698FC2C for ; Mon, 9 May 2011 17:32:19 +0000 (UTC) Received: by pxi11 with SMTP id 11so4496916pxi.7 for ; Mon, 09 May 2011 10:32:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.42.104 with SMTP id n8mr9855937pbl.496.1304962339010; Mon, 09 May 2011 10:32:19 -0700 (PDT) Received: by 10.68.58.3 with HTTP; Mon, 9 May 2011 10:32:18 -0700 (PDT) In-Reply-To: <01d201cc0e6c$47d4b180$d77e1480$@vicor.com> References: <20110508191336.GC3527@DataIX.net> <01d201cc0e6c$47d4b180$d77e1480$@vicor.com> Date: Mon, 9 May 2011 10:32:18 -0700 Message-ID: From: Gordon Tetlow To: Devin Teske Content-Type: text/plain; charset=ISO-8859-1 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:32:19 -0000 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. Surely we should be aiming for simplicity in our implementation and not something incredibly complex. 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} /etc/rc.conf.d/*.conf Personally, I think this is too many. Regards, Gordon