Wiki source for init


Show raw source

[[HomePage]] > [[ComponentHowTo Components and HowTos]] > [[BootIndex Booting]]

====Init====
~Init is the first process started during booting, and is typically assigned PID number 1. It is started by the kernel using a hard-coded filename, and if the kernel is unable to start it, a kernel panic will result. Init continues running until the system is shut down.


==Puppy's Init System==

Puppylinux uses the Busybox init process.

~"BusyBox combines tiny versions of many common UNIX utilities (GNU fileutils, shellutils,textutils) into a single small executable. It contains a small init system, which is a strippeddown SysVinit scheme. It can read an inittab file, but does not support runlevels" -- //Yvan & Frénot, A Survey of Unix Init Schemes [1]//

The name of the process is

%%Busybox init%%

The first script that his process called is referred to as the sysinit entry point, and it is defined in the file:

/etc/inittab
%%::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/mingetty --autologin root tty1
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
::ctrlaltdel:/sbin/reboot%%

and from inspecting the above script we see that for puppylinux the sysinit entry point is:

/etc/rc.d/[[rc.sysinit]]

More Information on the BusyBox init system can be found at:
[[https://wiki.openwrt.org/doc/techref/process.boot#busybox_init|https://wiki.openwrt.org/doc/techref/process.boot#busybox_init]]



==Related Webpages==
~[[https://en.wikipedia.org/wiki/Init|wikiPedia:Init process]]

----
==Categories==
~[[CategoryInstallation]] [[CategoryUserSpaceStartUp]]

==Notes & References==
1 - pg36 of Yvan Royon & Stéphane Frénot 2007, A Survey of Unix Init Schemes, https://arxiv.org/pdf/0706.2748v2.pdf
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki