Hardware Reference
In-Depth Information
This specifies that run level 2 is entered after the Linux kernel has booted.
The name in the id field is not important here and simply must be unique within
the file. The process field is also ignored for this entry. If the /etc/inittab file lacks the
initdefault entry, init will ask for a run level from the console.
Field 3 of the inittab line specifies an action. The possible action choices are
described in Table 3-3 .
Table 3-3. init Actions
Action
Description
Notes
respawn
Restart whenever process terminates.
wait
The process is started once when the run level is
entered, and init will wait for its termination.
once
Process is started when run level is entered.
boot
Executed during system boot.
Ignores run levels,
after sysinit entries
bootwait
Executed during system boot, but waits for the
process to complete.
Ignores run levels,
after sysinit entries
off
This does nothing (treat as a comment).
ondemand
Execute upon demand: a, b, or c.
No run-level
change
initdefault
Specifies the initial run level to use.
sysinit
Execute during system boot.
Prior to boot/
bootwait
Ignores run levels
powerwait
Execute process when power goes down.
Waits for
termination
powerfail
Execute process when power goes down.
Does not wait
powerokwait
Execute process when power restored.
powerfailnow
Execute process when UPS signals near
exhaustion of battery.
ctrlaltdel
Execute process when init sees SIGINT.
SIGINT triggered
by Ctrl-Alt-Delete.
kbrequest
Execute process after special key press.
 
 
Search WWH ::




Custom Search