LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2007, 03:34 PM   #1
barkout
LQ Newbie
 
Registered: Dec 2005
Posts: 15

Rep: Reputation: 0
Difference between /etc/init.d and /etc/rc.d/init.d


Hello folks, I apologize if this has been answered before, I have a question in regards to scripts that run under /etc/init.d and /etc/rc.d. Now I know that the rc.d directory stores scripts that start services at different runlevels. We have an application that installs the startup script in /etc/init.d. Do /etc/init.d scripts start after the OS has loaded? And what is the difference between /etc/init.d and /etc/rc.d/init.d. Can someone please clarify the differences. Thank you.
 
Old 04-02-2007, 03:43 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
/etc/init.d is the starting point; it holds all potential services but in order to determine which should be activated, it passes control to /etc/rcS.d, which specifies status (K=kill, S=start) and priority for various services. The next step is one of the /etc/rcN.d (N stands for a number), each one of those corresponding to a specific runlevel. This is Sys V style, of course; BSD is different again.

Last edited by jay73; 04-02-2007 at 03:45 PM.
 
Old 04-02-2007, 03:56 PM   #3
barkout
LQ Newbie
 
Registered: Dec 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you Jay, that clarifies things.

Regards

Terry
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
init.d difference? yogaboy Linux - General 3 12-18-2006 12:36 PM
difference between /etc/init.d/rc#.d and /etc/rc.d/ zhimsel Linux - General 5 10-26-2006 05:47 PM
Difference between /etc/rc.d/init.d/ and /etc/init.d/ techstar25 Red Hat 2 10-05-2006 05:20 AM
Difference bet'n rc.d and init.d shipon_97 Linux - Newbie 2 05-13-2006 11:57 PM
Difference between init and others shipon_97 Linux - Newbie 3 03-04-2006 12:12 PM


All times are GMT -5. The time now is 10:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration