ipfs-cluster/docker/cluster-restart.sh

10 lines
197 B
Bash
Raw Normal View History

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