Inittab file format

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.