From owner-freebsd-rc@FreeBSD.ORG Mon May 9 19:04:49 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 9E863106566B for ; Mon, 9 May 2011 19:04:49 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4655C8FC0A for ; Mon, 9 May 2011 19:04:48 +0000 (UTC) Received: by gyg13 with SMTP id 13so2378260gyg.13 for ; Mon, 09 May 2011 12:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=AJoY9BtY6kgowjEgMYywq5/qXgaBvJJ8rV7CmRZhGgU=; b=a59qXWqJplD+0N+OWMRDqcYQiZGVHa2SMwr+iwtIn1PsEFYvJCEIGRast8q5MMW4yH sbNBshuSJdHlTg622USTRqZT7MJ0DGL4AdG/fgBnPRJ0FPg7AlBAVbX9hGW5liZN09ay RcLyCHd/2IoX+m5SemZc+ty/JQ8aTL4Qtb+ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=gCOYfjtofqGqeMrBO6exJhaWFbfTxU6fXC9uv/E8GayDMW0/04dyTIVM0hpGta4bZZ UJUYuAPKkQaftSs8f5bk7xuNBQjFNLJjaqK4S83gwCd3hQGt6nYep896XSLpeAiN0fCS zi0th7RS2azy4EbbMh9TF5TCAkEQTc6wFTJPU= Received: by 10.236.155.70 with SMTP id i46mr7686133yhk.125.1304967888235; Mon, 09 May 2011 12:04:48 -0700 (PDT) Received: from DataIX.net (adsl-99-190-84-116.dsl.klmzmi.sbcglobal.net [99.190.84.116]) by mx.google.com with ESMTPS id h28sm132140yhm.97.2011.05.09.12.04.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 May 2011 12:04:47 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p49J4gur089509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 May 2011 15:04:43 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p49J4gA1089508; Mon, 9 May 2011 15:04:42 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Mon, 9 May 2011 15:04:41 -0400 From: Jason Hellenthal To: Gordon Tetlow Message-ID: <20110509190441.GC82456@DataIX.net> References: <20110508191336.GC3527@DataIX.net> <01d201cc0e6c$47d4b180$d77e1480$@vicor.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline In-Reply-To: X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E 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 19:04:49 -0000 --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Gordon, On Mon, May 09, 2011 at 10:32:18AM -0700, Gordon Tetlow wrote: > 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: >=20 > 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. >=20 > After Jason's proposal, we would have the following list of configuration= files: >=20 > /etc/defaults/rc.conf > /etc/rc.conf > /etc/rc.conf.local What seems to be lost here is that the below two are "optional" not=20 something that should be created by anything other than the user who needs= =20 that functionality. Yes having two of the below is a problem. Yes {name}=20 needs to go. But until there is something to replace it in a way that is=20 agreed on we cant get rid of the broken {name} implement. Hopefully noone is intending on breaking there system by creating=20 thousands of configs because that can be done easier by just spilling into= =20 rc.conf ;) This isnt a replacement and rc.conf.d isnt even available in the first=20 place unless end-user creates it. This wont replace rc.conf. > /etc/rc.conf.d/{name} > /etc/rc.conf.d/*.conf >=20 > Personally, I think this is too many. >=20 > Regards, > Gordon > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" --=20 Regards, (jhell) Jason Hellenthal --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNyDrJAAoJEJBXh4mJ2FR+oxQH+wZSfEMXwWFPCoEwbJis1/e4 y3DFZLV9AzM9XNQ4rcNcKIlIwyfm5ixOMIk+7Ja9VNN4uztu0ZiGyXkvG8QGRskj 6+G6453t1HX4g9TECyRZWv5bFqLL1lJ2CLzPXbbuG/52fUd+R8oX7jbG0wmoHDD9 Mh+Uo47ngUVfFiNxf608NsjVd4r++v0XlDKF074HzjDegb2PIP7kynOrov55E2v7 GD8gkEWYBDISZ+XNrO9e/HXXyCnyNzg/UaLCwuRzXEUhDRHp8h3eM2mjePqb/yy4 dkrfq1jUhRJq2ddqQKtzZ0DygDvu+9jKg93GB18HFCobUSlOngb7ByHiWjkSetk= =/gMU -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--