LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 02-28-2008, 02:12 AM   #1
ashok449
Member
 
Registered: Sep 2007
Location: noida
Distribution: suse
Posts: 63

Rep: Reputation: 16
source for init (/sbin/init)


Dear All,

where is the source for init i.e, /sbin/init executable



Thanks ...
 
Old 02-28-2008, 03:59 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Init isn't part of the Linux kernel. It is special as being a userland program called by the kernel though. There are several implementations available. The most used one is Sysvinit: http://freshmeat.net/projects/sysvinit/
 
Old 03-02-2008, 05:20 PM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
For background ...

init is "the ancestor of all things." When the system is initializing itself, it does basic initialization of the kernel and then, by hand, it creates a user-land process called init, running as the 'root' user. This is, traditionally, "process #1."

By definition, init must start and it must not die. If it does, you'll get various "kernel panics" and your system will stop-dead.

init does all of the user-land process initialization work, as specified in /etc/inittab.

Furthermore, init is the system's "grim reaper," its funeral director of last resort. All processes are responsible for cleaning up after their offspring, and if anyone doesn't, init does. This also gives it the opportunity to recognize things like logging-off: under certain conditions, init is what re-spawns the getty process so that a login: prompt re-appears.

Unix has a delightfully minimalist approach to most things. . .
 
  


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
exec of init (/sbin/init) failed!!! kernel panic KiraII Linux - Kernel 1 07-13-2007 10:07 PM
exec of init (/sbin/init) failed!!! 2 raklo Linux - Kernel 1 05-28-2007 10:02 AM
exec of init (/sbin/init) failed!! raklo Linux - Kernel 2 01-04-2007 12:57 AM
Chkroot scan - /sbin/init & /sbin/ifconfig INFECTED bicoba Linux - Security 4 06-07-2006 10:16 AM


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