063c5f1b78
Fixes #865. This makes the necessary changes so that consensu is selected on "init" with a flag set, by default, to "crdt". This generates only a "crdt" or a "raft" section, not both. If the configuration file has a "raft" section, "raft" will be used to start the daemon. If it has a "crdt" section, "crdt" will be used. If it has none or both sections, an error will happen. This also affects "state *" commands, which will now autoselect how to work from the existing configuration.
10 lines
204 B
Bash
Executable File
10 lines
204 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 --debug &
|
|
sleep 10
|
|
done
|