Thomas Seeling wrote:

When thinking about the general sysV init concept I now find it quite
strange that I have to add kill scripts to the "new" runlevel. Wouldn't
it be more logical to add kill scripts to to "old" runlevel and then run
the start scripts from the "new" runlevel?

Not really. If you are going from runlevel 3 to runlevel 5, which processes do you kill? Generally the answer is none. When going in the opposite direction, you probably only want to kill the display manager (gdm, sdm, lightdm, etc). Where should that logic reside? The old run level does not know what scripts to kill. It depends on the new run level.

Generally in a modern system we only need runlevels 0 (poweroff), 3 (multiuser), 5 (graphical multiuser), and 6 (reboot).

The only differences between RL 0 and RL 6 is the very last command in each group, reboot or poweroff. Note that both of those are symlinks to /sbin/halt. Even the options are the same, except that RL 0 uses -p to turn off the power.

In my case I don't even use RL 5 except for testing. The old levels 1 and 2 are not really used any more. RL 4 was never used -- it was for custom things, but I never heard of anyone using it.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to