LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   init.d difference? (https://www.linuxquestions.org/questions/linux-general-1/init-d-difference-511463/)

yogaboy 12-17-2006 09:41 PM

init.d difference?
 
Hi,

I'm running a Centos 4 distro and it has /etc/init.d/ and /etc/rc.d/init.d/

is there a difference? I've been starting/stopping services using the first one - is that ok??

Just wondering, as I'm fairly new to linux and still don't know much.

trickykid 12-17-2006 10:36 PM

One of them is probably a symlink.. rc.d was the original or SystemV/Unix based startup scripts which is still added as a link in most distributions for dependencies that look for rc.d instead of init.d, etc.. blah blah blah, you can probably do a quick search here or google and find better detailed answers as this has been asked before and my brain is kind of fried right now.. ;)

yogaboy 12-18-2006 02:31 AM

from one fried brain to another, thanks, that was actually helpful.

pixellany 12-18-2006 11:36 AM

Actually, you should be changing the LINKS that appear in the rcX.d directories---you should not change things in init.d unless you need to ADD a script.

The links in rcX.d have a numbering system to indicate what gets killed/started--and in what order.


All times are GMT -5. The time now is 12:56 AM.