LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 05-20-2016, 02:01 PM   #1
maybebaby
LQ Newbie
 
Registered: Apr 2016
Location: Virgin Islands
Posts: 23

Rep: Reputation: Disabled
init


id:1:initdefault:

init will run the scripts in which directory?

[root@serv01 ~]# ls -l /etc/rc.d
total 112
drwxr-xr-x 2 root root 4096 Mar 24 14:41 init.d
-rwxr-xr-x 1 root root 2255 Sep 21 2006 rc
drwxr-xr-x 2 root root 4096 Mar 24 14:41 rc0.d
drwxr-xr-x 2 root root 4096 Mar 24 14:41 rc1.d
drwxr-xr-x 2 root root 4096 Mar 24 14:41 rc2.d
drwxr-xr-x 2 root root 4096 Mar 24 14:47 rc3.d
drwxr-xr-x 2 root root 4096 Mar 24 14:41 rc4.d
drwxr-xr-x 2 root root 4096 Mar 24 14:47 rc5.d
drwxr-xr-x 2 root root 4096 Mar 24 14:41 rc6.d
-rwxr-xr-x 1 root root 220 Jun 23 2003 rc.local
-rwxr-xr-x 1 root root 26376 Jan 19 2007 rc.sysinit

I am having grave difficulty comprehending init as I thought id:1:initdefault would run state 1 as the default single user mode and run the rc.sysinit script at boot up. Therefore wouldn't it run in the /etc/rc1.d directory?
 
Old 05-20-2016, 02:29 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,913
Blog Entries: 14

Rep: Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142Reputation: 1142
rc#.d runs in the run level specified. Single user = Run level 1 so would therefore run the items in rc1.d.

More technically it runs the items that begin with S (for start) on entering run level 1 and the items that begin with K (for kill/stop) on exiting run level 1.

Run levels 2 through 5 are "multiuser" run levels that do different things. e.g. Run level 5 is usually the one that starts everything including graphics/X.
 
1 members found this post helpful.
  


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
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 01:16 PM
kernal panic no init found try passing init option to kernel m2azer Linux - General 3 11-08-2007 01:51 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:09 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