ipfs-cluster/docker/cluster-restart.sh

10 lines
199 B
Bash
Raw Normal View History

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