]> jfr.im git - erebus.git/commitdiff
fix croncheck to redirect stderr also
authorzonidjan <redacted>
Tue, 13 Sep 2016 09:13:19 +0000 (04:13 -0500)
committerzonidjan <redacted>
Tue, 13 Sep 2016 09:13:19 +0000 (04:13 -0500)
croncheck.sh

index 165b746ad077575561dc7f2cc9316bf633486e95..4058c16c9736166be44cbae7a9930e7af3eeb759 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
-exec &>/dev/null
 
 cd /home/jrunyon/erebus
+exec &>nohup.out
 
 if ! kill -0 "$(cat pidfile)"; then
-       nohup ./run.sh >nohup.out &
+       nohup ./run.sh &
 fi