-   Linux - Server (
-   -   Diffrence /etc/init.d and /etc/init.d/rc?.d scripts (

veeruhs 07-29-2010 02:31 AM

Diffrence /etc/init.d and /etc/init.d/rc?.d scripts
can anybody tell me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.

thanks in advance

EricTRA 07-29-2010 03:00 AM


I assume you mean difference between the scripts in /etc/init.d/ and /etc/rcX.d (and not /etc/init.d/rcX.d) where X is the runlevel.

The scripts are located in /etc/init.d/ and not in /etc/rcX.d. In /etc/rcX.d there are only links to the scripts in /etc/init.d/. If you run:

ls -al /etc/rc2.d/
for example you'll see what I mean. The only difference is that the links in /etc/rc2.d are proceeded with a letter S (for start) or K (for kill) and a sequence number so an administrator can indicate the run order of the scripts when entering a specific run level.

Hope that helps.

Kind regards,


veeruhs 07-29-2010 04:43 AM

Diffrence between /etc/init.d and /etc/rc.d/init.d

Thanks for the reply

Sorry for the mistake.I wanted to ask the difference between /etc/init.d and /etc/rc.d/init.d.


EricTRA 07-29-2010 05:42 AM


What distribution are you using? I imagine a RedHat based since that directory /etc/rc.d/ doesn't exist on my Debian servers. On RedHat it does exist. I think that the scripts in that specific directory are the same in both locations although I don't see any use for it. At least, I didn't find any differences between both locations. Must be some specific RedHat thing. I'm not very familiar with RedHat and the derivatives of it but I'm sure someone can point out why it's set up like that.

Kind regards,


All times are GMT -5. The time now is 10:24 PM.