FLOPPIX | Home | FAQ | Download | Labs | ToC | Back | Next |
Inittab is the first configuration file for init, but that is not the end
of the story. There are also a whole set of scripts that run on system startup
or shutdown that control exactly which daemons are stopped or started and
any other tasks that need to be done.
In a Debian Linux system, all scripts that are run at startup or on a change
of runlevel are stored in the directory /etc/init.d
The directory /etc/rcS.d controls which of the scripts from /etc/init.d are
run at startup.
The directory /etc/rc0.d controls which of the scripts are run on a change
to runlevel 0.
The directory /etc/rc1.d controls which of the scripts are run on a change
to runlevel 1.
The directory /etc/rc2.d controls which of the scripts are run on a change
to runlevel 2.
etc.
Each of the "rc" directories contains symbolic links to the required scripts
in /etc/init.d. The links are either "S" links which start a service or "K"
links which kill a service. Each of the linknames must start with an uppercase
S or K followed by a 2 digit sequence number. The K links will be executed
first in order followed by the S links.
For example: in floppix, /etc/rc6.d contains these links:
Copyright © L.M.MacEwan
FLOPPIX | Home | FAQ | Download | Labs | ToC | Back | Next |