zuul/doc/source/examples/playbooks/wait-to-start-gearman.sh

18 lines
370 B
Bash
Executable File

#!/bin/bash
# Zuul needs to be able to connect to the remote systems in order to
# start.
wait_for_gearman() {
echo `date -Iseconds` "Wait for gearman to start"
for i in $(seq 1 120); do
cat < /dev/null > /dev/tcp/scheduler/4730 && return
sleep 1
done
echo `date -Iseconds` "Timeout waiting for gearman"
exit 1
}
wait_for_gearman