fe815bb9dc
License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
13 lines
269 B
Bash
Executable File
13 lines
269 B
Bash
Executable File
#! /bin/sh
|
|
|
|
## Wait for cluster service process to exist and the stop the
|
|
## killer
|
|
DONE=1
|
|
while [ $DONE = 1 ]; do
|
|
sleep 0.1
|
|
if [ $(pgrep -f ipfs-cluster-service) ]; then
|
|
kill -STOP $(cat /data/ipfs-cluster/random-killer-pid)
|
|
DONE=0
|
|
fi
|
|
done
|