Home 用bash讓程式壞掉的時候自動重啟
Post
Cancel

用bash讓程式壞掉的時候自動重啟

1
2
3
4
until myserver; do
    echo "Server 'myserver' crashed with exit code $?.  Respawning.." >&2
    sleep 1
done

參考:

https://stackoverflow.com/a/697064/22299707

This post is licensed under CC BY 4.0 by the author.

nohup使用教學

update-alternatives管理軟體版本