Restart Program when crashed
I have a program called HelloWorld, but it crashes a lot,
is there anyway to tell Linux to automatically check if Hello World crashed, and if it is crashed, restart HelloWorld? Thanks! P.S. Running Ubuntu |
Searching for "restart" in apt turned up a few promising hits.
launchtool monit restartd I haven't tried any of these myself. A simple brute-force way is to run it in a loop. Code:
while true; do command ; done |
All times are GMT -5. The time now is 01:37 AM. |