]> jfr.im git - erebus.git/blobdiff - croncheck.sh
admin_config - add !getconfig, remove some unused functions
[erebus.git] / croncheck.sh
index 165b746ad077575561dc7f2cc9316bf633486e95..e737aa55b89f7b750dcdb068dd400beab92f1b30 100755 (executable)
@@ -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 &
 fi