Update Quilibrium.sh
This commit is contained in:
parent
4ee8dba7da
commit
17ae2f441f
@ -51,8 +51,8 @@ cat > auto.sh <<EOF
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
while true; do
|
while true; do
|
||||||
# 检查node进程是否存在
|
# 检查node进程是否存在
|
||||||
pgrep node > /dev/null
|
ps -ef | grep "node" | grep -v "grep"
|
||||||
if [ $? -ne 0 ]; then
|
if [ "$?" -eq 1 ]; then
|
||||||
# 如果node进程不存在,输出信息并启动node
|
# 如果node进程不存在,输出信息并启动node
|
||||||
echo "Node进程未运行,正在尝试重新启动..."
|
echo "Node进程未运行,正在尝试重新启动..."
|
||||||
GOEXPERIMENT=arenas go run ./...
|
GOEXPERIMENT=arenas go run ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user