Update cm_monitor.sh

This commit is contained in:
tianyu 2016-01-11 20:57:24 +08:00
parent 32b6228919
commit 98a24714b8
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
if [ $(ps -ef|grep cm.py|grep -v grep|wc -l) -eq 0 ]; then
echo "$(date) -- cm.py is down, start again."
screen -dmS cm python3 /root/cm/cm.py
cd /root/cm/; screen -dmS cm python3 /root/cm/cm.py
else
echo "$(date) -- cm.py is running."
fi