Para adicionar entradas ao inittab do sistema, use mkitab
:
sudo mkitab 'myapp1:2:respawn:/path/to/myapp1'
sudo mkitab 'myapp2:2:wait:/path/to/myapp2'
sudo mkitab 'myapp3:2:once:/path/to/myapp3'
sudo mkitab 'myapp4:2:boot:/path/to/myapp4'
sudo mkitab 'myapp5:2:bootwait:/path/to/myapp5'
Onde as várias opções Action
são (mais útil):
respawn
If the process identified in this record does not exist, start the process. If the process currently exists, do nothing and continue scanning the /etc/inittab file.
wait
When the init command enters the run level specified for this record, start the process and wait for it to stop. While the init command is in the same run level, all subsequent reads of the /etc/inittab file ignore this object.
once
When the init command enters the run level specified for this record, start the process, do not wait for it to stop and when it does stop do not restart the process. If the system enters a new run level while the process is running, the process is not restarted.
boot
Read this record only when the system boots and reads the /etc/inittab file. The init command starts the process. Do not wait for the process to stop and when it does stop, do not restart the process. The run level for this process should be the default, or it must match the run level specified by the init command at startup time.
bootwait
Read this record only when the system boots and reads the /etc/inittab file. The init command starts the process. Wait for it to stop, and when it does stop, do not restart the process.
Referência: