ipfs-cluster/docker/cluster-restart.sh
2017-09-21 19:05:25 -04:00

10 lines
229 B
Bash
Executable File

#! /bin/bash
# Restart the cluster process
sleep 2
while true; do
export CLUSTER_SECRET=""
pgrep ipfs-cluster-service || ipfs-cluster-service -f init; echo "CLUSTER RESTARTED"; ipfs-cluster-service --debug &
sleep 10
done