respawn. Starts the process and restarts it when it dies. wait. Starts the process and waits for it to finish before going on to the next entry for this run level.
How do you comment etc inittab in AIX?
To comment out an entry in the /etc/inittab file, add : or # at the beginning of the entry. For example, the following entry is commented out. A string of 1 to 7 characters that uniquely identifies the entry. The ID is used as the job name for the process.
How do I edit etc inittab in AIX?
Modifying the /etc/inittab file
- To add a record to the /etc/inittab file, type the following at a command prompt: mkitab Identifier:Run Level:Action:Command.
- To change a record to the /etc/inittab file, type the following at a command prompt: chitab Identifier:Run Level:Action:Command.
How do I restart a Linux process?
To restart a stopped process, you must either be the user who started the process or have root user authority. In the ps command output, find the process you want to restart and note its PID number. In the example, the PID is 1234 . Substitute the PID of your process for the 1234 .
What command is used to reload the ETC Inittab file after it has been updated?
You need to use /sbin/telinit command.
How do I start httpd in Linux?
You can also start httpd using /sbin/service httpd start . This starts httpd but does not set the environment variables. If you are using the default Listen directive in httpd. conf , which is port 80, you will need to have root privileges to start the apache server.
What is the use of inittab file in Linux?
The /etc/inittab file supplies the script to the init command’s role as a general process dispatcher. The process that constitutes the majority of the init command’s process dispatching activities is the /etc/getty line process, which initiates individual terminal lines.
How to kill a process and not respawn it?
Delete the command line link to process on /etc/inittab and execute: Then , you can kill the process and it will not respawn. Thanks for contributing an answer to Stack Overflow!
Does init restart the process when it dies?
When the init command enters a run level that matches the entry’s run level, start the process, and do not wait for its termination. When it dies, do not restart the process. When the system enters a new run level, and the process is still running from a previous run level change, the program will not be restarted.
How do I start the init process from the start?
Process the entry the first time that the init command goes from single-user to multi-user state after the system is booted. Start the process, wait for its termination, and when it dies, do not restart the process. If the initdefault is 2, run the process right after boot.