added pm2 stop in update.sh

This commit is contained in:
cubedro 2015-06-18 00:09:13 +03:00
parent e5e52b1e9a
commit edae7d3c2b

View File

@ -43,12 +43,15 @@ else
fi
fi
heading "Stopping processes"
pm2 stop all
heading "Flushing logs"
pm2 flush
rm -Rf ~/logs/*
rm -rf ~/.local/share/Trash/*
heading "Stopping processes"
heading "Stopping pm2"
pm2 kill
heading "Killing remaining node processes"