Skip to content
Permalink
Browse files

If quickfix runs 90 minutes, kill and update

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 29, 2019
1 parent ad040bd commit bab493e7b8e3d34bbcc915cbeda6d2647cec507f
Showing with 10 additions and 0 deletions.
  1. +10 −0 patches.sh
@@ -30,3 +30,13 @@ else
fi;

fi;

# This is ONLY a failsafe: If quickfix has been running > 90 minutes, it's pretty apparent something is wrong, so do a git pull in case a patch has been issued
quickfix=`/usr/local/bin/nems-info quickfix`
if [[ $quickfix == 1 ]]; then
if [[ $(find "/var/run/nems-quickfix.pid" -mmin +90 -print) ]]; then
kill `cat /var/run/nems-quickfix.pid`
cd /usr/local/share/nems/nems-scripts
git pull
fi
fi

0 comments on commit bab493e

Please sign in to comment.
You can’t perform that action at this time.