On Fri, Jun 23, 2000 at 08:38:55PM -0700, Marshal Wong wrote:

>     > Hi all I wanted to know why that when changing runlevels from
>     > say 2 to 3, the KILL links of _3_ and not 2 get executed before
>     > starting the START links of 3...?

> I think because K comes before S.  So switching run levels only runs
> the scripts in the runlevel dircetory (in your case rc3.d).  The kill
> scripts of 2 have already been run, presumably when you first boot up,
> or when you switched to runlevel 2.

Hmm, my idea of the K links have been to "clean up" the system so as to
be able to go into a different state / runlevel... but I am unsure now.

>     > I mean, at that point you're leaving runlevel 2 and it would
>     > only make sense to stop those runlevel's services and not the
>     > new runlevel's, right?

> Maybe, but I think to have what you want, you'll need start up scripts
> and kill scripts for both going into the runlevel and leaving the

But at first, the system isn't in any runlevel and hasn't any services
up, and so it won't need to stop anything and thus K links for runlevel 
S (or whatever the first actual runlevel is) don't make sense to me.

Someone please shed some light on this for me as I want to understand
this.

TIA
-- 
S. Burgener
Powered by Debian GNU/Linux 2.2

Reply via email to