LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2006, 09:41 PM   #1
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
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.
 
Old 12-17-2006, 10:36 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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..
 
Old 12-18-2006, 02:31 AM   #3
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
from one fried brain to another, thanks, that was actually helpful.
 
Old 12-18-2006, 11:36 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between /etc/init.d/rc#.d and /etc/rc.d/ zhimsel Linux - General 5 10-26-2006 04:47 PM
Difference between /etc/rc.d/init.d/ and /etc/init.d/ techstar25 Red Hat 2 10-05-2006 04:20 AM
Difference bet'n rc.d and init.d shipon_97 Linux - Newbie 2 05-13-2006 10:57 PM
Difference between init and others shipon_97 Linux - Newbie 3 03-04-2006 11:12 AM
Difference between init.d, xinetd and running service as a dameon jstephens84 Linux - Newbie 1 09-13-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration