Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-28-2008, 01:12 AM   #1
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, 02:59 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,557

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
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:
Old 03-02-2008, 04:20 PM   #3
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,727

Rep: Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299Reputation: 1299
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. . .


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

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

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