The inittab file is composed of entries that are position-dependent and have the following format:
id:rstate:action:process
The entry fields are:
id:a one to four character value used to uniquely identify an entry.
rstate:defines the run level in which this entry is to be processed. a process can be assigned to one or more run levels. No entry in this fields means all run level
action:a keywork in this field tells boot init how to treat the process specified in the process field. here are some of the actions that can be specified:
boot:process the entry only at boot init's boot time read of the inittab file. boot init starts the process, does not wait for its termination, and when it dies, does not restart the process
bootwait:process the entry only at boot init's boot-time read of the inittab file. boot init starts the process, waits for its termination,and, when it dies, does not restart the process
initdefault:the default run level
respawn:if the process does not exist, start the process; do not wait for its termination. when it dies, restart the process. if the process currently exists, do nothing and continue scanning the inittab file
process:this is the shell command to be executed
阅读(1854) | 评论(0) | 转发(0) |