On Mon, 16 Jun 2003 at 12:04am (-0400), Robert P. J. Day wrote: > > rather than being sloppy and continually fudging the distinction between > run level "s/S" (single-user mode) and run level 1, i'd like to really > appreciate the differences.
[...] > but what about going to run level "s"? /etc/inittab doesn't define what > to do with that run level, and the man page for init seems to suggest that > you can go to "s" without the need for /etc/inittab. this is useful to > know if you trash your /etc/inittab file, and it suggests that you can get > around this by going to run level "s" at boot time, then repairing/ > restoring /etc/inittab. > > but not so fast. i tried that, and it seemed clear that, even booting > to run level "s", the file /etc/rc.sysinit listed in /etc/inittab was > being invoked, so /etc/inittab appears to still be necessary. > > anyway, you get the idea. i just want to appreciate the subtle (and not > so subtle) differences, and when to use each. You seem to have it pretty much sus'ed excepted for the roll of inittab in run level S. Yes init still looks in /etc/inittab when going to run level S but if it doesn't find an entry, or the inittab can't be opened then it init acts as if it had read.. ~~:S:wait:/bin/sh ... from the file. So inittab is not required but nor is it ignored. On some of my older systems I've overiden this with... ~:S:wait:/sbin/consolechooser ... where consolechooser is a script I wrote to deal with some serial consoles that wouldn't behave themselves. With runlevel 1 your box still needs to have some basic funtionality, in run level S, nothing really needs to work except /sbin/init and /bin/sh... it's basically one step up from booting with init=/bin/sh ... using runlevel S instead of the init= hack (assuming S works) really just means you don't have to reboot the system to go back to a 'real' run level. M. -- WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company Level 5, 100 Wickham St. Network Operations - Systems Engineer PO Box 930, Fortitude Valley. phone: +61 7 3249 2552 Queensland, Australia 4006. pgp key id: 0x900E515F -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list