更新 start.sh

This commit is contained in:
星光-k
2025-01-13 16:25:50 +00:00
committed by GitHub
parent 0d849f7a7e
commit ee5d2bb1ba

View File

@@ -27,7 +27,7 @@ start_process
# 无限循环检查main.py是否在运行
while true; do
sleep 180 # 每5秒检查一次
sleep 180 # 每180秒检查一次
pid=$(ps -ef | grep "$dir/$f_name" | grep -v grep | awk '{print $2}')
if [ -z "$pid" ]; then
echo "main.py is not running, restarting..."