LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-29-2010, 01:31 AM   #1
veeruhs
LQ Newbie
 
Registered: Feb 2010
Posts: 17

Rep: Reputation: 0
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
 
Old 07-29-2010, 02:00 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 07-29-2010, 03:43 AM   #3
veeruhs
LQ Newbie
 
Registered: Feb 2010
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 07-29-2010, 04:42 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] init scripts, variables in INIT INFO section catkin Linux - General 1 08-18-2009 02:02 PM
Init Scripts brazilian_user Linux - General 3 12-05-2006 08:51 AM
what is the scripts in /etc/init.d for? blackzone Linux - General 7 09-06-2006 11:10 PM
init scripts lvgandhi Debian 2 10-11-2005 02:44 AM
New init scripts? xconspirisist Fedora 9 12-09-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:27 PM.

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