Update cm_monitor.sh
This commit is contained in:
parent
32b6228919
commit
98a24714b8
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
if [ $(ps -ef|grep cm.py|grep -v grep|wc -l) -eq 0 ]; then
|
if [ $(ps -ef|grep cm.py|grep -v grep|wc -l) -eq 0 ]; then
|
||||||
echo "$(date) -- cm.py is down, start again."
|
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
|
else
|
||||||
echo "$(date) -- cm.py is running."
|
echo "$(date) -- cm.py is running."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue