2017-10-20 22:11:47 +00:00
|
|
|
#!/bin/sh
|
2017-09-21 23:05:25 +00:00
|
|
|
|
|
|
|
# Restart the cluster process
|
2017-10-11 17:18:46 +00:00
|
|
|
sleep 4
|
2017-09-21 23:05:25 +00:00
|
|
|
while true; do
|
|
|
|
export CLUSTER_SECRET=""
|
2017-10-11 17:18:46 +00:00
|
|
|
pgrep ipfs-cluster-service || echo "CLUSTER RESTARTING"; ipfs-cluster-service --debug &
|
2017-09-21 23:05:25 +00:00
|
|
|
sleep 10
|
|
|
|
done
|