From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa705,d5e0b1e7c4cbd816,start X-Google-Attributes: gidfa705,public X-Google-Thread: 11035d,355b01f914e167ff X-Google-Attributes: gid11035d,public X-Google-Thread: fee84,d5e0b1e7c4cbd816,start X-Google-Attributes: gidfee84,public X-Google-Thread: 10650a,d5e0b1e7c4cbd816,start X-Google-Attributes: gid10650a,public From: j@ida.interface-business.de (J Wunsch) Subject: Re: SysV init [Was: Solaris 2.6] Date: 1996/12/11 Message-ID: <58m3bb$hju@innocence.interface-business.de>#1/1 X-Deja-AN: 203505854 distribution: inet x-pgp-fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E references: <32986299.AC7@mail.esrin.esa.it> x-fax: +49-351-3361187 organization: interface business GmbH, Dresden reply-to: joerg_wunsch@interface-business.de (Joerg Wunsch) newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals,comp.unix.osf.osf1 x-phone: +49-351-31809-14 peter@nmti.com (Peter da Silva) wrote: (Should we reduce the followup line?) > Go ask the NetBSD core team about my horrible System V boosterism some time. > I dropped out of there after getting thoroughly spanked for offering to > provide a System V init clone. Maybe they're right... though I've noticed > they're splitting up /etc/rc too these days. There's some good stuff in > System V (and hooray for DEC for recognising that and sticking a System V > init in Digital UNIX). The SysV init has good and bad sides. While i think the idea is not too bad, i have yet to see a single SysV that does all state transitions right, e.g. where it doesn't tell you ``Starting foobar service...'' when you tell it to go down from run-level 3 to 2, or ``Stopping mumblefritz'' when you upgrade from S to 1. So in short, i think 7 or 8 run-levels are plain overkill. Nobody gets all state transitions right, and among all the SysV vendors, there's heavy disagreement whether a system should boot by default into level 2, 3 or even 4 (HP). With ``by default'', i mean what's needed to get the system into a normal useful state, similar to BSD's multi-user level (networking intact, xdm etc. running). If you cut down the SysV idea to run-levels single-user, multi- user (*), halt, and reboot, i'm all for it. (*) Maybe two levels of multi-user, one with and one without networking. OTOH, this will already start you getting into the described state-transition troubles. And, i rather love the BSD idea where you can simply call /etc/netstart (however you might name it) even from single-user, and get full networking client abilities. Note that this is still very different from SysV's run-level 2, and i had problems to achieve something roughly similar on those SysV's i've been working with. This might however be rather related to the STREAMS TCP/IP implementations rather than to problems with their init scripts. Perhaps, /etc/netstart should better be named /etc/rc.d/net then, and accept the usual `start' and `stop' arguments. (One could provide an /etc/netstart calling ``/etc/rc.d/net start'' for those who are used to the old naming.) -- J"org Wunsch Unix support engineer joerg_wunsch@interface-business.de http://www.interface-business.de/~j