INITTAB(5) | File Formats and Configurations | INITTAB(5) |
inittab - script for init
The /etc/inittab file controls process dispatching by init. The processes most typically dispatched by init are daemons.
It is no longer necessary to edit the /etc/inittab file directly. Administrators should use the Solaris Service Management Facility (SMF) to define services instead. Refer to smf(7) and the System Administration Guide: Basic Administration for more information on SMF.
To modify parameters passed to ttymon(8), use svccfg(8) to modify the SMF repository. See ttymon(8) for details on the available SMF properties.
The inittab file is composed of entries that are position dependent and have the following format:
id:rstate:action:process
Each entry is delimited by a newline; however, a backslash (\) preceding a newline indicates a continuation of the entry. Up to 512 characters for each entry are permitted. Comments may be inserted in the process field using the convention for comments described in sh(1). There are no limits (other than maximum entry size) imposed on the number of entries in the inittab file. The entry fields are:
id
rstate
When init is requested to change run levels, all processes that do not have an entry in the rstate field for the target run level are sent the warning signal SIGTERM and allowed a 5-second grace period before being forcibly terminated by the kill signal SIGKILL. The rstate field can define multiple run levels for a process by selecting more than one run level in any combination from 0 through 6. If no run level is specified, then the process is assumed to be valid at all run levels 0 through 6.
There are three other values, a, b and c, which can appear in the rstate field, even though they are not true run levels. Entries which have these characters in the rstate field are processed only when an init or telinit process requests them to be run (regardless of the current run level of the system). See init(8). These differ from run levels in that init can never enter run level a, b or c. Also, a request for the execution of any of these processes does not change the current run level. Furthermore, a process started by an a, b or c command is not killed when init changes levels. They are killed only if their line in inittab is marked off in the action field, their line is deleted entirely from inittab, or init goes into single-user state.
action
respawn
wait
once
boot
bootwait
powerfail
powerwait
off
ondemand
sysinit
process
sh(1), who(1), exec(2), open(2), signal(3C), smf(7), init(8), svc.startd(8), svcadm(8), ttymon(8)
System Administration Guide: Basic Administration
With the introduction of the service management facility, the system-provided /etc/inittab file is greatly reduced from previous releases.
The initdefault entry is not recognized in Solaris 10. See smf(7) for information on SMF milestones, and svcadm(8), which describes the "svcadm milestone -d" command; this provides similar functionality to modifying the initdefault entry in previous versions of the Solaris OS.
December 9, 2004 | OmniOS |