added pm2 flush in hourly cron

This commit is contained in:
cubedro 2015-06-17 05:56:28 +03:00
parent 30f9c3754c
commit cde1395482

View File

@ -64,6 +64,7 @@ sudo apt-get install -y build-essential git unzip wget nodejs npm ntp cloud-util
# set up time update cronjob
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh
pm2 flush
sudo service ntp stop
sudo ntpdate -s ntp.ubuntu.com
sudo service ntp start