LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Diffrence /etc/init.d and /etc/init.d/rc?.d scripts (http://www.linuxquestions.org/questions/linux-server-73/diffrence-etc-init-d-and-etc-init-d-rc-d-scripts-822780/)

veeruhs 07-29-2010 01: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
veerendra

EricTRA 07-29-2010 02:00 AM

Hello,

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:
Code:

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,

Eric

veeruhs 07-29-2010 03:43 AM

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

Thanks for the reply

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

Regards,
Veerendra

EricTRA 07-29-2010 04:42 AM

Hello,

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,

Eric


All times are GMT -5. The time now is 07:20 AM.