Skip to content
Permalink
Browse files

Remove PID file after kill

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 29, 2019
1 parent bab493e commit edeae50f89b41af0ea280e208f3c5efa5b1d6869
Showing with 2 additions and 3 deletions.
  1. +2 −3 patches.sh
@@ -35,8 +35,7 @@ fi;
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
kill `cat /var/run/nems-quickfix.pid` && rm /var/run/nems-quickfix.pid
cd /usr/local/share/nems/nems-scripts && git pull
fi
fi

0 comments on commit edeae50

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