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:
Anders Kaseorg 2021-12-03 15:03:16 -05:00 committed by Tim Abbott
parent 24900ec7f8
commit 2e1a8ff632
1 changed files with 1 additions and 1 deletions

View File

@ -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