From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 7 06:31:11 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DF481065676 for ; Thu, 7 Aug 2008 06:31:11 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.180]) by mx1.freebsd.org (Postfix) with ESMTP id C0E4A8FC0A for ; Thu, 7 Aug 2008 06:31:10 +0000 (UTC) (envelope-from ioplex@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so434086ika.3 for ; Wed, 06 Aug 2008 23:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=x9LqGstcXgF8voOv5MCsckmdUJzCSbXrpeFRlZXATW0=; b=ujVDv4TweesU5jjBEPNtj/dQQWotg9bKMVFtHOb+GzaMlEbwxIKuz2I7cyKYlBsS4A dUxJ4+wsomSIWuR2udBktCs3HmTUxjvMmMZliKd5ZnEsNj38uVN3W/Q/GjNwQJJvmYLv PLrczkDLrzDTAh0lc6R/Z5AY9BIT3cS3psqDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EW6MQYQCshd5URkr0rXIHOlxlX+1kt/K+3n2IUHU0inREgwzBIFiYQHZwjcI3kOg23 kNrqDKPbicvvMAVSDjsCTssY/5beG34lwWvZbAMONe9BMAmJnyluzPVwTleiIANx0FoS QvdH2+b7VmAXEa0RLci35KCH+dfP0+hrZS6jg= Received: by 10.210.91.17 with SMTP id o17mr3514731ebb.172.1218090669288; Wed, 06 Aug 2008 23:31:09 -0700 (PDT) Received: by 10.210.109.15 with HTTP; Wed, 6 Aug 2008 23:31:09 -0700 (PDT) Message-ID: <78c6bd860808062331h674b951ei5f7ca95a930f1af4@mail.gmail.com> Date: Thu, 7 Aug 2008 02:31:09 -0400 From: "Michael B Allen" To: "Mike Meyer" In-Reply-To: <20080807010638.267d7790@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78c6bd860808061934l133d8ca6nabbde8cd55cb1d27@mail.gmail.com> <20080807010638.267d7790@bhuda.mired.org> Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for FreeBSD 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: Thu, 07 Aug 2008 06:31:11 -0000 On Thu, Aug 7, 2008 at 1:06 AM, Mike Meyer wrote: > On Wed, 6 Aug 2008 22:34:51 -0400 > "Michael B Allen" wrote: >> As for getting rid of rc.d scripts, yes they're decrepit and I would >> love to see them go but they're simple and third party software may >> depend on them being the norm. > > The only thing decrepit about the rc.d scripts is that they don't all > support the latest facilities that you'd expect them to. But the way > to fix that is to update the old ones, not to throw out all of them > and start over. In particular, if you want to replace them with a > better format, you need to start by showing that said format is better > - and chanting buzzwords like "xml" isn't sufficient to do that. I did not mean to say that the scripts themselves were decrepit. I mean the whole Unix runlevel rc.d apparatus in general is decrepit. There should be a library to install, start, stop, restart, uninstall, disable, enable, change order of services and also change the runlevel. And then there should be a very small utility that calls the library to invoke the desired operations from the commandline and from init. If the library and corresponding utility are implemented correctly, the format of the file containing service state should be moot since no one will ever look at it (which is to say dbm or some other binary-blob format should be used since it makes programming the said library much cleaner). And for backwards compatibility you leave the rc.d tree so that a third party can drop in a script and it will continue to work but anyone using the said utility would completely bypass all the rc.d business. But I just made that up. Of course such things are never as simple as they sound the first time around. Mike