Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-02-2007, 02:34 PM   #1
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, 02:43 PM   #2
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 02:45 PM.
Old 04-02-2007, 02:56 PM   #3
LQ Newbie
Registered: Dec 2005
Posts: 15

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




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 11:36 AM
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:13 AM.

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