From owner-freebsd-current Mon Oct 23 13:46:51 2000 Delivered-To: freebsd-current@freebsd.org Received: from femail2.sdc1.sfba.home.com (femail2.sdc1.sfba.home.com [24.0.95.82]) by hub.freebsd.org (Postfix) with ESMTP id C728137B4C5; Mon, 23 Oct 2000 13:46:29 -0700 (PDT) Received: from beastie.localdomain ([24.19.158.41]) by femail2.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001023204613.ILFO12625.femail2.sdc1.sfba.home.com@beastie.localdomain>; Mon, 23 Oct 2000 13:46:13 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id NAA46858; Mon, 23 Oct 2000 13:48:43 -0700 (PDT) (envelope-from brian) Date: Mon, 23 Oct 2000 13:48:43 -0700 From: "Brian O'Shea" To: "David O'Brien" Cc: bv@wjv.com, freebsd-current@FreeBSD.ORG Subject: Re: new rc.network6 and rc.firewall6 Message-ID: <20001023134843.Y622@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: David O'Brien , bv@wjv.com, freebsd-current@FreeBSD.ORG References: <81966.972151537@winston.osd.bsdi.com> <20001022153957.A4742@dragon.nuxi.com> <20001022214151.C7279@wjv.com> <20001023010526.A6883@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20001023010526.A6883@dragon.nuxi.com>; from David O'Brien on Mon, Oct 23, 2000 at 01:05:27AM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Oct 23, 2000 at 01:05:27AM -0700, David O'Brien wrote: > On Sun, Oct 22, 2000 at 09:41:51PM -0400, Bill Vermillion wrote: > > One of the reasons for the numbers in the SysVR4 arena is to > > set the order of execution so programs which other depend upon > > are executed first. How does the NetBSD solve this problem. > > Very coolly. The main rc script runs a script named `rcorder' to > generate the proper order. rc.shutdown also uses `rcorder' but reverses > the ordering. Two examples are included below to show what `rcorder' > uses to generate the list. These NetBSD rc files also provide "start", > "stop", "restart", "status", etc. commands to assist the sysadmin. > Again, *very* slick and still quite BSD-like. Sounds interesting. To add a new rc script to the system, do you have to add an entry to an "rc order list" somewhere (in addition to adding the new script)? How is that handled? The nice (or clumsy, depending on your point of view) part about the SysV way is that the order in which the rc scripts are executed is implicit in the scripts' names. Of course, they have added a symlink maze (worse, hard links on HP-UX) on top of that, making it tedious to maintain rc scripts by hand (maybe that was by design). [snip] -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message