From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11035d,355b01f914e167ff X-Google-Attributes: gid11035d,public X-Google-Thread: 10650a,d5e0b1e7c4cbd816 X-Google-Attributes: gid10650a,public X-Google-Thread: fa705,d5e0b1e7c4cbd816 X-Google-Attributes: gidfa705,public X-Google-Thread: fee84,d5e0b1e7c4cbd816 X-Google-Attributes: gidfee84,public From: peter@nmti.com (Peter da Silva) Subject: Re: SysV init [Was: Solaris 2.6] Date: 1996/12/11 Message-ID: <58mmlf$cqm@web.nmti.com>#1/1 X-Deja-AN: 203515228 distribution: inet references: <32986299.AC7@mail.esrin.esa.it> <58invm$s4b@abyss.west.sun.com> <58k7hn$nur@web.nmti.com> <58m3bb$hju@innocence.interface-business.de> organization: Network/development platform support, NMTI newsgroups: comp.unix.solaris,comp.unix.bsd.misc,comp.unix.internals,comp.unix.osf.osf1 In article <58m3bb$hju@innocence.interface-business.de>, J Wunsch wrote: > 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. The semantics of the scripts that are run from inittab need to be separated from the System V init model itself. Init itself is a very simple program: all it basically does is run programs on entering states. In a BSD world, for example in Digital UNIX, it doesn't even complete the shutdown process itself... rather the script that run on entering run level 0 finishes off with a call to "halt" or "reboot". 4 states is plenty. 0 (halt), 1 (single user), 2 (multiuser), and 3 (online). (call 0 0/6 if you want to use run levels to determine whether you call halt or reboot) I *do* think that sitinguishing between multiuser and online (multiuser with networking services and modems online) is a valuable tool for a system administrator. Networking *clients* should continue to run in single-user mode (and that's something System V boxes don't tend to get right, sigh). This can all be done without a zillion /etc/rc.d/rc3.d/S00internet files if you like. Just have /etc/rc.d/rc(0,1,2,3,6) run on entering that state. --