On Sun, Feb 16, 2003 at 02:39:47PM +0100, Qian Gong wrote: > In /etc/rc6.d there is a link S30urandom. But run level 6 means reboot, > which should stop (K) urandom, instead of start (S). More interesting is > that "init 6" actually stops urandom. Another link is S35networking whose > name means "start", but in fact "networking" is stopped. Any idea to > explain? Thanks in advance.
Whether a link starts or stops something depends not on its name but on what argument it is passed. SXXfoo and KXXfoo links both point to the same /etc/init.d/foo, which reads its argument - start, stop, restart etc. - and performs the appropriate action. >From /usr/share/doc/sysvinit/README.runlevels.gz: > 5. Halt/reboot > > Going to runlevel 0 or 6 will cause the system to be halted or rebooted, > respectively. For example, if we go to runlevel 6 (reboot) first > all /etc/rc6.d/KXXxxxx scripts will be executed alphabetically with > "stop" as the first argument. > > Then the /etc/rc6.d/SXXxxxx scripts will be executed alphabetically > with "stop" as the first argument as well. The reason is that there > is nothing to start anymore at this point - all scripts that are > run are meant to bring the system down. > > In the future, the /etc/rc6.d/SXXxxxx scripts MIGHT be moved to > /etc/rc6.d/K1XXxxxx for clarity. Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

