From ee5d2bb1ba4ef1216831e10aa220e7fcdd59601b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:25:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20start.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/start.sh b/bin/start.sh index 02468dd..c6bc512 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -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..."