Merge pull request #184 from cubedro/develop
Added pm2 flush in hourly cron
This commit is contained in:
commit
74fdaa3dba
@ -64,6 +64,7 @@ sudo apt-get install -y build-essential git unzip wget nodejs npm ntp cloud-util
|
|||||||
# set up time update cronjob
|
# set up time update cronjob
|
||||||
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
|
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
pm2 flush
|
||||||
sudo service ntp stop
|
sudo service ntp stop
|
||||||
sudo ntpdate -s ntp.ubuntu.com
|
sudo ntpdate -s ntp.ubuntu.com
|
||||||
sudo service ntp start
|
sudo service ntp start
|
||||||
|
Loading…
Reference in New Issue
Block a user