Inittab file format
The init program used in CentOS 5.5 is the traditional sysinit,init that most of the configuration is required in the/etc/inittab file. In CentOS 6.4, the INIT program became the upstart, with the name still init, but the configuration was scattered across/etc/init/*.conf multiple files. This article mainly explains the format of the Inittab file in CentOS 5.5.
The user state that the Linux kernel loads after booting up the first process is/sbin/init, which is then initiated by the following tasks, including multi-user environments, networks, etc. The Init profile Inittab defines a number of startup-related information, including the default boot level that is commonly used, and the service required to start a level.
The format of each item in the Inittab file:
Id:runlevels:action:process
Each field represents:
id: identifier;
runlevels: at which level to run this line;
action: under what circumstances the line is executed;
P style= "font-family: ' Microsoft Jas Black '; Font-size:14px;line-height:21px;white-space:normal;background-color:rgb (255,255,255 );" > process: to run the program;
The action has the following types:
initdefault: set default Run level
sysinit: system initialization
wait: wait level switches to this level when you execute
P style= "font-family: ' Microsoft Jas Black '; Font-size:14px;line-height:21px;white-space:normal;background-color:rgb (255,255,255 );" > respawn: once the program terminates, it restarts the
e.g:
Id:3:initdefault:-----Define a default startup level of 3
Si::sysinit:/etc/rc.d/rc.sysinit -----System Initialization phase call Rc.sysinit
This article is from the "My Study Notes" blog, so be sure to keep this source http://toormi.blog.51cto.com/10512055/1681068
Inittab file format