Theodore You wrote: > On Tue, Jul 12, 2011 at 9:47 AM, Bruce Dubbs <bruce.du...@gmail.com> wrote: >> Theodore You wrote: >>> The book says in chapter 7.3: >>> Â Â Links that start with an S in the rc0.d and rc6.d directories will >>> Â Â not cause anything to be started. They will be called with the >>> Â Â parameter stop to stop something. >>> >>> If so, why are there still scripts starting with an S in these two >>> directories? >>> Why not change all S to K? >> When changing to any run level, the rc script is run. Â It goes through >> the K entries with a stop. Â For runlevels 0 and 6, all the S entries are >> also run, in order, with a stop. Â For runlevels 1-5, The S entries are >> run with a start. > According to the rc script, if an S entry was started in previous > runlevel, and not stopped in current runlevel, it will be skipped, but > if we are switching to runlevel 0 or 6, this script won't be stopped. > Is this intended or I'm wrong? >> For runlevels 0 and 6, this lets us shut down in the order started (K >> entries) and then run the S entries, in order, to actually halt or >> restart the system. > If we want to change the order of these scripts, we can simply change > the number of the script, I still think there's no need for the S.
Your distro, your rules. What we have is the way it's done on most distros that still use sysvinit. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page