No subject
Tue Nov 29 10:43:08 WST 2011
3. Switching runlevels.
When one switches from (for example) runlevel 2 to runlevel 3,
/etc/init.d/rc will first execute in alphabetical order all K
scripts for runlevel 3 (/etc/rc3.d/KXXxxxx) with as first argument
"stop" and then all S scripts for runlevel 3 (/etc/rc3.d/SXXxxxx)
with as first argument "start".
This is in the /usr/share/doc/sysvinit/README.runlevels.gz file.
On Tue, Feb 26, 2002 at 09:13:19AM +0800, Mike Holland wrote:
> On Mon, 25 Feb 2002, Brian Tombleson wrote:
>
> > When entering runlevel X, all the scripts starting with 'S' in the directory
> > /etc/rcX.d/ are executed with the argument 'start'
> > When leaving runlevel X, all the scripts starting with 'K' in the directory
> > /etc/rcX.d/ are executed with the argument 'stop'
>
> That would seem logical, and Andrew said a similir thing, but a quick look
> in the /etc/rc* directories shows that is not the case at all. Rather
> than matched pairs of S & K, its either one or the other.
> The 'init' program actually knows nothing about these links and rc*
> directories - they are a messy hack (IMHO) added by SystemV. From init(8):
>
> CONFORMING TO
> Init is compatible with the System V init. It works
> closely together with the scripts in the directories
> /etc/init.d and /etc/rc{runlevel}.d. If your system uses
> this convention, there should be a README file in the
> directory /etc/init.d explaining how these scripts work.
>
> Nice to know there should be a README, but Mandrake doesnt have one.
> Does Debian?
> The program responsible is /etc/rc.d/rc . Does this have any
> documentation? No man page. It is a script though, so can be read.
>
>
> --
> "For every fatal shooting, there were roughly three non-fatal shootings.
> And folks, this is unacceptable in America. It's just unacceptable. And
> we're going to do something about it." -- George W. Bush, 14/5/01
--
Andrew Howell
Managing Director
Informed Technology
E-mail: andrew at it.net.au
Ph: 08 9380 4244 Fax: 08 9380 4354
More information about the plug
mailing list