]> jfr.im git - erebus.git/blobdiff - croncheck.sh
admin_config - add !getconfig, remove some unused functions
[erebus.git] / croncheck.sh
index 4058c16c9736166be44cbae7a9930e7af3eeb759..e737aa55b89f7b750dcdb068dd400beab92f1b30 100755 (executable)
@@ -1,8 +1,12 @@
 #!/bin/bash
 
-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 ./run &
 fi