[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Starting services in runlevels 0 and 6

[Jörg Sommer]
>> It was pointed out to me, that even the scripts starting with S are 
>> called with argument 'stop' for runlevels 0 and 6 by /etc/init.d/rc. 
>> However, the reason why it is implemented that way is still not clear.
> Because the S scripts are run after the K scripts. This way it is
> possible to run special scripts at very last.

Well, it is not really a good explanation, as the ordering of K01 S01
could also be done with K01 K02.  No need to use start-symlinks as
stop scripts to get the proper ordering.  I've been told that the
sysv-rc system behave the way it does because Solaris did it when the
Debian boot system was written, and it was used as the example.  I
guess that is as good explanation as any on the historical reasons for
the strange setup in the Debian boot system.

Petter Reinholdtsen

Reply to: