vik-y
1/6/2015 - 3:48 PM

Detect Failure in run time of a program and restart it

Detect Failure in run time of a program and restart it

until <Shell Command to be Executed>; do
    echo "Server 'myserver' crashed with exit code $?.  Respawning.." >&2
    sleep 1
done