"Oliver Elphick" <olly@lfix.co.uk> writes: > It seems rather clumsy, though. Why was this scheme chosen, instead of > one where the K scripts are run for the previous runlevel?
K scripts are not supposed to shut down everything that was started from that runlevel. They are supposed to shut down everything that should not be running in that runlevel. But if K scripts from the previous runlevel were run, each runlevel would have to contain a K script for each S script. Daemons would then get restarted whenever you moved between two runlevels that should both contain them. > The current > scheme works fine for shutting down and going to single user mode, but > is very clumsy for an administrator who wants to assign meanings to > run-levels 2 to 5 (which Debian does not currently do). It works very well for higher run levels. For example, if you want to run xdm in level 3, you place only S in 3, and only K everywhere else. Guy