10 lines
229 B
Bash
10 lines
229 B
Bash
|
#! /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
|