From 17ae2f441f6296138b10c75924dced24822e7528 Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Sat, 2 Mar 2024 14:31:55 +0800 Subject: [PATCH] Update Quilibrium.sh --- Quilibrium.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quilibrium.sh b/Quilibrium.sh index 585fd88..a404741 100644 --- a/Quilibrium.sh +++ b/Quilibrium.sh @@ -51,8 +51,8 @@ cat > auto.sh < /dev/null - if [ $? -ne 0 ]; then + ps -ef | grep "node" | grep -v "grep" + if [ "$?" -eq 1 ]; then # 如果node进程不存在,输出信息并启动node echo "Node进程未运行,正在尝试重新启动..." GOEXPERIMENT=arenas go run ./...