Makes records in the /etc/inittab file.
mkitab [ -i Identifier ] { [ Identifier ] : [ RunLevel ] : [ Action ] : [ Command ] }
The mkitab command adds a record to the /etc/inittab file. The Identifier:RunLevel:Action:Command parameter string specifies the new entry to the /etc/inittab file. You can insert a record after a specific record using the -i Identifier flag. The command finds the field specified by the Identifier parameter and inserts the new record after the one identified by the -i Identifier flag.
The
Identifier:RunLevel:Action:Command
parameter string specifies the record in the /etc/inittab file, as follows:
Identifier | A 14-character parameter that uniquely identifies an object. The Identifier must be unique. If the Identifier is not unique, the command is unsuccessful. The Identifier cannot be changed; if you try to change it, the command is unsuccessful. |
RunLevel | A 20-character parameter defining the run levels in which the Identifier can be processed. Each process started by the init command can be assigned one or more run levels in which it can be started. |
Action | A 20-character parameter that informs the init command how to
process the Command parameter that you specify. The
init command recognizes the following actions:
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
Attention: To avoid possible corruption of system files, the stdin, stdout, and stderr files must be specified in the Command parameter with redirection, or they must be explicitly opened by the program being run by the command line.
Command | A 1024-character field specifying the shell command. |
-i Identifier | Specifies which record in the /etc/inittab file the new record follows. |
mkitab "tty002:2:respawn:/usr/sbin/getty /dev/tty2"
mkitab -i srcmstr "rctcpip:2:wait:/etc/rc.tcpip > /dev/console"
mkitab ((rc:2:wait:/etc/rc 2>&1 | alog -tboot > /dev/console))
/etc/inittab | Contains the mkitab command. |
The chitab command, lsitab command, rmitab command, init command.