mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-12 00:45:33 +08:00
Update cm_monitor.sh
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user