ipfs-cluster/docker/wait-killer-stopper.sh
Hector Sanjuan fe815bb9dc Use sh for docker test scripts
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-10-21 00:11:47 +02:00

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