Skip to content
Advertisement

supervisor for an executable in linux [closed]

I am currently developing an executable which runs on linux. I want to have a supervisor which monitor this executable and restart which it is killed. Is there any command for doing so? or suggest me some way to do it

Note: the code is in c++

Advertisement

Answer

This supervisor already exists and is always running. It’s called init, and most versions are controlled by the entries in /etc/inittab.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement