Update Quilibrium.sh

This commit is contained in:
smeb y 2024-03-02 14:31:55 +08:00 committed by GitHub
parent 4ee8dba7da
commit 17ae2f441f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,8 +51,8 @@ cat > auto.sh <<EOF
#!/bin/bash
while true; do
# 检查node进程是否存在
pgrep node > /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 ./...