From owner-freebsd-hackers Wed Nov 18 15:05:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA25089 for freebsd-hackers-outgoing; Wed, 18 Nov 1998 15:05:04 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from stage1.thirdage.com (stage1.ThirdAge.com [204.74.82.151]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA25084 for ; Wed, 18 Nov 1998 15:05:02 -0800 (PST) (envelope-from jal@ThirdAge.com) Received: from gigi (gigi.ThirdAge.com [204.74.82.169]) by stage1.thirdage.com (8.8.5/8.8.5) with SMTP id OAA01505; Wed, 18 Nov 1998 14:59:51 -0800 (PST) Message-Id: <3.0.5.32.19981118150237.00afac40@204.74.82.151> X-Sender: jal@204.74.82.151 X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 18 Nov 1998 15:02:37 -0800 To: Adrian Filipi-Martin From: Jamie Lawrence Subject: Re: /etc/rc.d, and changes to /etc/rc? Cc: hackers@FreeBSD.ORG In-Reply-To: References: <19981117193824.A29415@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 12:47 AM 11/18/98 -0500, ADRIAN Filipi-Martin wrote: >On Tue, 17 Nov 1998, Gary Kline wrote: >> > I think the real tradeoff is between homegrown complexity that >> > often is under documented and homegrown complexity that at least >> > follow conventions that are easy to follow. > > I don't see where the above would ever be anything but a >homegrown script. If you want fancy do-it-all scripts, go for it. This I don't see where you're disagreeing with me. The point is to add a degree of convention to the process. >is exactly why I dislike start/stop scripts. Most of them lump several >realted but independent processes together. We'll have to agree to disagree then. That's precisely why they're useful. > Now, consider the following. > >Total lines in FreeBSD-2.2.6 /etc/rc.* [...] > 1347 total > >Total lines in IRIX 6.5's /etc/{b,}rc* and init.d scripts: [...] > 4873 total > > I think it would be fair to say the number of lines of rc-code >would be substantially larger under FreeBSD if converted to start/stop >scripts. The brevity and flexability is one of the current BSD rc files. Excuse the curtness, but, so what? Most of those lines of code are 'case foo in bar' lines. Simple stuff. Another win is modularity - introduce an error in your rc.conf now (:wq, anyone?) and you risk a failed startup. Do the same in your S98mysql script and your system comes up fine, modulo the database. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message