mirror of https://github.com/zulip/zulip.git
configure-rabbitmq: Increase startup timeout.
Starting RabbitMQ at boot seems to have gotten slower, which broke ‘vagrant up --provision’. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
24900ec7f8
commit
2e1a8ff632
|
@ -22,7 +22,7 @@ try_ping() {
|
||||||
# `rabbitmqctl ping` requires 3.7.6 or newer
|
# `rabbitmqctl ping` requires 3.7.6 or newer
|
||||||
out="$("${rabbitmqctl[@]}" eval 'net_adm:ping(node()).')" && [ "$out" = 'pong' ]
|
out="$("${rabbitmqctl[@]}" eval 'net_adm:ping(node()).')" && [ "$out" = 'pong' ]
|
||||||
}
|
}
|
||||||
retries=9
|
retries=29
|
||||||
while ! try_ping 2>/dev/null; do
|
while ! try_ping 2>/dev/null; do
|
||||||
sleep 1
|
sleep 1
|
||||||
if ! ((retries -= 1)); then
|
if ! ((retries -= 1)); then
|
||||||
|
|
Loading…
Reference in New Issue