I have a custom init script and I want that script to be respawned if in case the process dies.
In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
centosinitinittablinuxupstart
I have a custom init script and I want that script to be respawned if in case the process dies.
In RHEL/Centos 6 /etc/inittab is deprecated. So how should I ensure the process will be respawned?
Best Answer
On RHEL 6 to respawn a script, go to /etc/init and create a file
And add this content
Save file and then launch this command (without .conf of file)
Thats all!