Hello,

I�m trying to understand Linux�s script initialisation system. I�ve 
read most of the related chapters in the LDP docs, but they only 
introduced me to the /etc/inittab syntax. It says that this file runs 
/etc/rc.d/rc $1, where $1 goes from 0 to 6.

When I got to /etc/rc.d/rc, I had to start my own research. This 
script runs all the K* and then the S* scripts of each rc$2.d 
subdirectory, where $2 goes again from 0 to 6. I assume that the 
K* scripts stand for �kill� and that the S* scripts stand for �start�. 
Since these scripts are simply links to the /etc/rc.d/init.d/ scripts, I 
assume that if the script�s name starts with a K, that service will 
be killed, and if it starts with an S, the service will be started. So 
having a service run or not in a given runlevel is just a matter of 
renaming its link to S* or K* from the corresponding rc?.d directory, 
am I right? Or are there some other configuration settings stored 
somewhere else?

Jerem�as Galletti

Reply via email to