From owner-freebsd-hackers Sun Nov 29 21:02:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA16912 for freebsd-hackers-outgoing; Sun, 29 Nov 1998 21:02:27 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from lorax.ubergeeks.com (lorax.ubergeeks.com [206.205.41.241]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA16899 for ; Sun, 29 Nov 1998 21:02:13 -0800 (PST) (envelope-from adrian@lorax.ubergeeks.com) Received: from localhost (adrian@localhost) by lorax.ubergeeks.com (8.8.8/8.8.8) with SMTP id AAA01741; Mon, 30 Nov 1998 00:01:16 -0500 (EST) (envelope-from adrian@lorax.ubergeeks.com) Date: Mon, 30 Nov 1998 00:01:16 -0500 (EST) From: ADRIAN Filipi-Martin Reply-To: Adrian Filipi-Martin To: rssh@grad.kiev.ua cc: Greg Lehey , dyson@iquest.net, wes@softweyr.com, tlambert@primenet.com, hackers@FreeBSD.ORG Subject: Re: System V init (was: Linux to be deployed in Mexican schools; Where was FreeBSD?) In-Reply-To: <36620B32.74F76F43@Shevchenko.Kiev.UA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 30 Nov 1998, Ruslan Shevchenko wrote: > 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" How many run-levels are you proposing? There are only 7 standard ones, AFIK. I cannot really see adding runlevels for each type of subsystem a practicle. > 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 Every implementation I have see so far actually uses alpha-numeric ordering. Things being implicit and scattered in varions directories is one reason I prefer the simpler, cohesive BSD rc's. > 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'm not really sure this sort of dynamic behavior would really be useful. Systems tend to all boot in the same basic sequence, with soe skipping certian subsystems that are not needed. Adrian -- [ adrian@ubergeeks.com -- Ubergeeks Consulting -- http://www.ubergeeks.com/ ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message