From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 11 17:39:55 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B94B7106566C for ; Mon, 11 Oct 2010 17:39:55 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 61E628FC12 for ; Mon, 11 Oct 2010 17:39:55 +0000 (UTC) Received: (qmail 30880 invoked by uid 399); 11 Oct 2010 17:39:54 -0000 Received: from localhost (HELO ?192.168.0.145?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 11 Oct 2010 17:39:54 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4CB34BF9.4050504@FreeBSD.org> Date: Mon, 11 Oct 2010 10:40:09 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Devin Teske References: <1286397912.27308.40.camel@localhost.localdomain> In-Reply-To: <1286397912.27308.40.camel@localhost.localdomain> X-Enigmail-Version: 1.2a1pre OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: sysconf -- a sysctl(8)-like utility for managing /etc/rc.conf et. al. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2010 17:39:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Unfortunately $LIFE is preventing me from an in-depth review of this script at this time, but I wanted to lodge a comment or two. Please forgive me for the brevity. 1. I applaud any effort in the realm of making things easier for users. 2. I like the general concept of having a programmatic interface to the "settings" that live in "rc.conf and friends". 3. I have read the thread, and so I have a pretty good idea of the environment that the author is working in, and that the complexity of this script is (at least in part) a result of that environment. 4. That said, I think that in its current form the script is: a) far too complex b) not even in the neighborhood of "FreeBSD rc.d style" c) misses some knowledge of FreeBSD resources (e.g., mktemp) 5. For those reasons I am not supportive of adding this to the base at this time 6. I would not object to this being added to ports, however 7. I agree with the author's statement that in an ideal world the internals of the script would be added to rc.subr so that they could be available to the whole rc.d system. In fact, one of the features that has been requested to add to the service(8) script is the idea of taking "enable" and "disable" as arguments. I'm supportive of that, but haven't found time to code it yet, in part because (as has been illuminated in this thread) the problem of determining how to conclusively toggle the setting is not as cut and dry as it appears. The model that I had more or less settled on for that is to be certain that /etc/rc.d/servicename is the last file sourced for any given invocation of source_rc_confs() and focus on that, but even that mechanism has complications that I don't have time to go into right now. So to summarize, the general idea is a good one and needed, and an area that I'd like to see more work in. Perhaps it might be a good idea to move the discussion about that to freebsd-rc@? hth, Doug PS, have a look at, for example, 'service named rcvar' - -- Breadth of IT experience, and | Nothin' ever doesn't change, depth of knowledge in the DNS. | but nothin' changes much. Yours for the right price. :) | -- OK Go http://SupersetSolutions.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (MingW32) iQEcBAEBCAAGBQJMs0v4AAoJEFzGhvEaGryEF5oH/iVMaqFwytSIJSucka/4PkfY 2hUzw+OjvxqSCPZmxch+zU6hfFkWh8H0ZjbNULoA8y6FLrV1ogJuWqEb3g9K4vKt 3rx5reubsyS/bIWd5J0cXSM97hD2bq0DZlyFQKPiDY+xSEPiLvOcFKyzTq4MOu58 Z78LTBt3sAHc7Yc/lpiJD8lKQDNDzhtUsB13y+7AwmKh7RkYoub0QvlGwFF5D3xu a7oNiRUlZJdrhfRQPq65r7h7W0fLJGxQCcOJMaUFvGvdXUREZrsuplV1ABlXZ+tL B95dmu7oaOdwE5vkSP+v10Wbl4oMCuLoDhAgrfwhbOF1i2bXbH5UJd+vfyljcss= =wz2I -----END PGP SIGNATURE-----