Update Quilibrium.sh

This commit is contained in:
smeb y 2024-03-02 14:43:25 +08:00 committed by GitHub
parent 620eb7d386
commit cbaafc83d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,26 +46,5 @@ git clone https://github.com/quilibriumnetwork/ceremonyclient
# Navigate to ceremonyclient/node directory
cd ceremonyclient/node
# 写入脚本
cat > auto.sh <<EOF
#!/bin/bash
while true
do
ps -ef | grep "node" | grep -v "grep"
if [ "$?" -eq 1 ]
then
echo "process has restarting..."
GOEXPERIMENT=arenas go run ./...
echo "process has been restarted!"
else
echo "process already started!"
fi
sleep 10
done
EOF
# 赋予权限
chmod +x auto.sh
# Create a screen session and run the command
screen -dmS Quili bash -c './auto.sh'
screen -dmS Quili bash -c 'GOEXPERIMENT=arenas go run ./...'