ipfs-cluster/docker/cluster-restart.sh
Hector Sanjuan 6188d6ff52 service: Make --consensus a mandatory flag
It has a few implications to launch a raft peer when you wanted to do crdt and vice-versa.

Same when exporting and exporting states.

Users starting cluster peers should be explicit about their consensus choice.

Also, if we ever want to make `crdt` the default, we can't do that before
making `raft` non-default first. I don't like to break things but otherwise
the experience for new users wanting to try crdts might be aweful.
2019-07-26 18:15:41 +02:00

10 lines
221 B
Bash
Executable File

#!/bin/sh
# Restart the cluster process
sleep 4
while true; do
export CLUSTER_SECRET=""
pgrep ipfs-cluster-service || echo "CLUSTER RESTARTING"; ipfs-cluster-service daemon --consensus raft --debug &
sleep 10
done