From owner-freebsd-hackers Sun Nov 29 17:10:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA26822 for freebsd-hackers-outgoing; Sun, 29 Nov 1998 17:10:46 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA26817 for ; Sun, 29 Nov 1998 17:10:44 -0800 (PST) (envelope-from toor@y.dyson.net) Received: (qmail 24314 invoked from network); 30 Nov 1998 01:10:33 -0000 Received: from dyson.iquest.net (HELO y.dyson.net) (198.70.144.127) by iquest3.iquest.net with SMTP; 30 Nov 1998 01:10:33 -0000 Received: (from root@localhost) by y.dyson.net (8.9.1/8.9.1) id UAA01950; Sun, 29 Nov 1998 20:10:32 -0500 (EST) Message-Id: <199811300110.UAA01950@y.dyson.net> Subject: Re: System V init (was: Linux to be deployed in Mexican schools; Where was FreeBSD?) In-Reply-To: <36620B32.74F76F43@Shevchenko.Kiev.UA> from Ruslan Shevchenko at "Nov 30, 98 03:04:18 am" To: rssh@grad.kiev.ua Date: Sun, 29 Nov 1998 20:10:32 -0500 (EST) Cc: grog@lemis.com, rssh@grad.kiev.ua, adrian@ubergeeks.com, dyson@iquest.net, wes@softweyr.com, tlambert@primenet.com, hackers@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@iquest.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ruslan Shevchenko said: [Charset koi8-r unsupported, filtering to ASCII...] > Greg Lehey wrote: > > > OK, but you can do this in System V as well. I still haven't seen > > anything that explains what System V init will do (and BSD init won't) > > that we need to implement automatic startup and stopping of > > subsystems. > > > > on SYSV I can say > init "run-level-less-than-database" > init "normal-run-level" > > and sybsystems whill be closed and started up in stack order. > > And SNMP service from pevious example will work. > > I. e. in SYSV dependences between subsystem are implicity stored in > /etc/rc dierectory tree. > X depend from Y --> X must start after Y -> > /etc/rc/X.rank > /etc/rc/Y.rank > or if X.rank = Y.rank then S-X bigger than S-Y > > for FreeBSD, I think, ideally is to have explicit graph of dependences, > in some form, where init-states is marks of nodes on it, and during > init close all nodes which have rank biggest then argument. > > may be in each rc.X implement command 'depend_from' which show > all programs, after restarting of ones is nessesory to restart X. > I agree: if it is possible to *improve* on or correct the SYSV scheme, then do so. I don't think that it is a good thing to ignore the advantages. For those who don't want or need the complexity or advantages of SYSV init, then they can pretty much ignore it. -- John | Never try to teach a pig to sing, dyson@iquest.net | it makes one look stupid jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message