Date: Wed, 18 Nov 1998 15:02:37 -0800 From: Jamie Lawrence <jal@ThirdAge.com> To: Adrian Filipi-Martin <adrian@ubergeeks.com> Cc: hackers@FreeBSD.ORG Subject: Re: /etc/rc.d, and changes to /etc/rc? Message-ID: <3.0.5.32.19981118150237.00afac40@204.74.82.151> In-Reply-To: <Pine.BSF.3.96.981118001620.1471B-100000@lorax.ubergeeks.co m> References: <19981117193824.A29415@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19981118150237.00afac40>