diff options
author | Joseph Graham <joseph@fibreglass.tunachunks> | 2013-08-02 13:24:55 +0100 |
---|---|---|
committer | Joseph Graham <joseph@fibreglass.tunachunks> | 2013-08-02 13:24:55 +0100 |
commit | 2778bbcbb5bfeb269b2bff7a66f4546c3ec47a53 (patch) | |
tree | af10a4466c7c5bb93ee42abb93f266a633d7fd0e | |
parent | a7e9067402bd384d575b485ecdca29b6d0b5f565 (diff) |
fixed some mistakes. prepeared for a test
-rw-r--r-- | pbot-ng_fixer | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pbot-ng_fixer b/pbot-ng_fixer index 6700968..684744f 100644 --- a/pbot-ng_fixer +++ b/pbot-ng_fixer @@ -2,9 +2,11 @@ while true do + sleep 30 + # If nothing has been written to the log for 30 minutes then we assume # pbot-ng is dead. - if [[ -z $(find . -iname 'raw.log' -mmin -30) ]] + if [[ -z $(find logs/ -iname 'raw.log' -mmin -30) ]] then # Kill all pbot-ng processes while read -r line @@ -20,6 +22,4 @@ do ./bug_tracker_change_detector & ./chili_change_detector & fi - - sleep 15m done |