Editing inittab
Adding a process to the inittab file is pretty easy. Like many of the system files in Linux, this file is delimited by the colon (:) character.
Remember the 3 Bs of system administration: back up, back up, and back up again
Make sure you have a backup copy of the inittab file before you start editing it.
Each line has the following format:
[ID]:[Runlevels to be running at]:[Action]:[program name and arguments]
Table 27.2 describes each field in the preceding code.
Field Name | Description |
---|---|
ID | This is a short description of the line or event. For example, pressing Ctrl+Alt+Delete causes init to look for the ctrl-alt-del event in the inittab file. There are events for power failure as well, and along ... |
Get Practical Linux now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.