LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between /etc/init.d and /etc/rc.d/init.d (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-etc-init-d-and-etc-rc-d-init-d-679577/)

dawn 10-28-2008 11:26 AM

difference between /etc/init.d and /etc/rc.d/init.d
 
Hi there,

I am working on automating the startup database and listener on a server which has a Oracle 10g database, Webb server and blackboard app server, the database and listener should startup before services are started and the services should be stoped before the database and listener are stoped. I don't know how to find that out and how to configure the chkconfig to start the database and listener before services are started.
I was told to place my script under /etc/rc.d/init.d but I wonder what the difference is between /etc/init.d and /etc/rc.d/init.d directories since all the files within both directories are the same.

Thanks for your help

Dawn

brianL 10-28-2008 11:51 AM

On Slackware, don't know about other distros, /etc/init.d is a link to /etc/rc.d/init.d.

anomie 10-28-2008 12:02 PM

Same with Red Hat family distros:
Code:

%ls -ld /etc/init.d
lrwxrwxrwx 1 root root 11 Aug 13 18:27 /etc/init.d -> rc.d/init.d



All times are GMT -5. The time now is 02:36 PM.