Quilibrium/Auto.sh
2024-03-02 14:35:10 +08:00

15 lines
259 B
Bash

#!/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