From owner-freebsd-current Wed Oct 25 12:17: 7 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 4A0EB37B4C5 for ; Wed, 25 Oct 2000 12:17:00 -0700 (PDT) Received: (qmail 1365 invoked by uid 0); 25 Oct 2000 19:16:58 -0000 Received: from p3ee20a8e.dip.t-dialin.net (HELO speedy.gsinet) (62.226.10.142) by mail.gmx.net with SMTP; 25 Oct 2000 19:16:58 -0000 Received: (from sittig@localhost) by speedy.gsinet (8.8.8/8.8.8) id UAA19340 for freebsd-current@FreeBSD.ORG; Wed, 25 Oct 2000 20:14:01 +0200 Date: Wed, 25 Oct 2000 20:14:01 +0200 From: Gerhard Sittig To: freebsd-current@FreeBSD.ORG Subject: Re: new rc.network6 and rc.firewall6 Message-ID: <20001025201401.Q25237@speedy.gsinet> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <21367.972424567@winston.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <21367.972424567@winston.osd.bsdi.com>; from jkh@winston.osd.bsdi.com on Tue, Oct 24, 2000 at 02:56:07PM -0700 Organization: System Defenestrators Inc. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Oct 24, 2000 at 14:56 -0700, Jordan Hubbard wrote: > > > [ ... NetBSD (or Linux?) like rc scripts ... ] > > So, who wants to do a proof-of-concept implementation for > -current which integrates with our existing rc.conf mechanism? > In order to obey POLA, we should at least have the separate > scripts switch off the same knobs whenever possible. I do. As far as I understand the new scripts typically look something like this: - am I (the special service) enabled? - is my executable present? - is my config present? - optional: are my prerequisited (neighbour / underlying services) met? - start me up, obeying flags if present All of this is currently done in the monolithic block, too. I don't see the difference yet (except for splitting the logically distinct functions apart into "natural" groups). What's new is: - include the general config at the start (and yes, in every single script -- but this should be neglectable in terms of speed penalty and makes them work separately, too -- which is a real big gain!) - maybe include (source) some common code like - determining pids belonging to program names - starting processes in an supervised or backgrounded or any other special way - have some printouts, error level summary, etc but I don't see FreeBSD having this level of "rc lib" as NetBSD has in rc.subr or even RedHat has in /etc/rc.d/functions(sp?). So only the sourced rc.conf (default and customized) remains. The real new part eating most of the time to implement is the shutdown path (which I understand to be somewhat absent in FreeBSD right now, "kill -TERM everything" seems to do the job right now). > It's something I'd be willing to do, I guess. I have some > history with the rc.foo files. :) Tell me what I can do to help. I'm willing to contribute, too. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message