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
.