X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/124f0dcfc53ffb658bbe008b9735f8e4be9aa8b4..0d93d7b47b642e1c5705b3c75fb7f5cfcbe0fe41:/croncheck.sh diff --git a/croncheck.sh b/croncheck.sh index 77bdfa6..ef2e7b2 100755 --- a/croncheck.sh +++ b/croncheck.sh @@ -3,6 +3,10 @@ cd "$(dirname $(readlink -f $0))" exec &>nohup.out +if [ -e dontstart ]; then + exit 0 +fi + if ! kill -0 "$(cat pidfile)"; then nohup ./run.sh & fi