更新 start.sh

This commit is contained in:
星光-k
2025-01-13 15:24:46 +00:00
committed by GitHub
parent 78f7f9b597
commit 0d849f7a7e

View File

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