X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/1e0639df0e71a24da1dd33529581ffe244c91a1b..bc68cb5e3344e6986dfcea8e7744aaab327a4ff7:/croncheck.sh?ds=sidebyside diff --git a/croncheck.sh b/croncheck.sh index 165b746..ef2e7b2 100755 --- a/croncheck.sh +++ b/croncheck.sh @@ -1,8 +1,12 @@ #!/bin/bash -exec &>/dev/null -cd /home/jrunyon/erebus +cd "$(dirname $(readlink -f $0))" +exec &>nohup.out + +if [ -e dontstart ]; then + exit 0 +fi if ! kill -0 "$(cat pidfile)"; then - nohup ./run.sh >nohup.out & + nohup ./run.sh & fi