I need to restart a script when it fails. My script fails because of a Ruby runetime bug which is another issue…
Share
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.
There might be cleaner ways of doing it, but it seems the obvious way is to have a separate process running that monitors the first one. If it is not running, restart it.
You can enumerate processes and get information about the command line and other details in order to know which script is being run.