From owner-freebsd-hackers Wed Nov 18 12:43:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03885 for freebsd-hackers-outgoing; Wed, 18 Nov 1998 12:43:49 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA03880 for ; Wed, 18 Nov 1998 12:43:43 -0800 (PST) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.8.8/8.8.8) id HAA04373; Wed, 18 Nov 1998 07:28:45 GMT (envelope-from nik) Message-ID: <19981118072845.16651@nothing-going-on.org> Date: Wed, 18 Nov 1998 07:28:45 +0000 From: Nik Clayton To: Matthew Dillon , Gary Kline Cc: Nik Clayton , hackers@FreeBSD.ORG Subject: Re: /etc/rc.d, and changes to /etc/rc? References: <19981115235938.22908@nothing-going-on.org> <19981117210138.03327@nothing-going-on.org> <19981117144058.A27582@thought.org> <199811180057.QAA29611@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199811180057.QAA29611@apollo.backplane.com>; from Matthew Dillon on Tue, Nov 17, 1998 at 04:57:00PM -0800 Organization: Nik at home, where there's nothing going on Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 17, 1998 at 04:57:00PM -0800, Matthew Dillon wrote: > Currently /etc/rc is monolithic, but it also only deals > with rc.conf related things and has both the /etc/rc.local, > /etc/rc.conf.local, and /usr/local/etc/rc.d extensions. I'm > not sure how beneficial it would be to migrate /etc/rc to > a sysV style startup interface. All it would be doing is pulling some of the startup code out of /etc/rc* and in to /etc/rc.d/foo.sh. I forgot to list another advantage. If a service requires the starting and stopping of multiple daemons (think NFS for example) then a simple killall (as far as I'm aware) isn't enough -- you need to go through /etc/rc* looking for the daemons that are started, kill them, then restart them in the right order. If you're doing this while testing things, it gets boring quite easily. # sh /etc/rc.d/nfs.sh restart is considerably simpler, and less error prone (assuming, of course, that nfs.sh is written properly. N -- C.R.F. Consulting -- we're run to make me richer. . . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message