There are many ways to keep a process running on linux but I haven’t seen any that are as easy to implement as the script below.
Basically the script does a ps ax and then a grep for your process. If it’s not running it will re-start the process.
You install the script into your crontab i.e. crontab -e
As a bonus this mechanism will re-start your process after a re-boot. Continue reading “How to keep a job running in Linux” »