On Mon, 2005-03-28 at 09:43 -0700, Kiawud wrote: > I'm not even going to claim any expertise in this area. However, off > the top of my head, I can see the following advantages to how Gentoo > does the runlevel: > > 1) By adding 'softlevel' information to the grub settings, you can > switch between runlevels at boot time instead of having to login, > change '/etc/inittab' and then reboot.
You can do this with "normal SysV Init" too. > 2) By adding the dependency information to the init-scripts, you can > run any init-script knowing that it will make sure everything needed > for it is already running or started. Right, but it could happen that something starts up you didn't suspect to start up if you start something else. What is the whorse of these is more a matter of taste. > 3) To change between runlevels, you just have to run all the scripts > in a given '/etc/runlevels/<runlevel>' ... so, if you start in console ... that is what init <NEW_RUNLEVEL> does on UNIX systems ;) > mode and want to switch to xdm mode, just run the scripts in that > runlevel directory via a simple shell script (ie: for i in `ls > <runlevel-dir>; do $i start; done) ... (of course, there's probably an > easier way to switch runlevels on gentoo, but again, I'm not an > expert). > > As usual, these are just my thoughts... > > -Hani > -- > [email protected] mailing list > May be it is an advantage that runscript (by the way, minicom installs /sbin/runscript too) takes care of all the variables set up (these I never found). So, for instance, if I start my postgresql as root the processes started are running under the postger user and I never figured out why. That's IMHO more annoying than helpful. 0,02$ Frank -- [email protected] mailing list
