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++
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This supervisor already exists and is always running. It’s called
init, and most versions are controlled by the entries in/etc/inittab.