From 36df37be3136d1aa14b23f87632fa461363509b4 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Tue, 20 Jun 2023 09:17:21 +0200 Subject: [PATCH] rabbitmq: Use timeout in healthcheck script Currently we don't set timeout and the default is infinity. Change-Id: Id1a87995a36e202fc0aaf82daf022ec10d78e37d --- docker/rabbitmq/healthcheck_rabbitmq | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/rabbitmq/healthcheck_rabbitmq b/docker/rabbitmq/healthcheck_rabbitmq index d7a0d54e58..529362bace 100644 --- a/docker/rabbitmq/healthcheck_rabbitmq +++ b/docker/rabbitmq/healthcheck_rabbitmq @@ -2,9 +2,9 @@ set -e -rabbitmq-diagnostics -q ping || exit 1 -rabbitmq-diagnostics -q status || exit 1 -rabbitmq-diagnostics -q check_running || exit 1 -rabbitmq-diagnostics -q check_local_alarms || exit 1 -rabbitmq-diagnostics -q check_port_connectivity || exit 1 -rabbitmq-diagnostics -q check_virtual_hosts || exit 1 +rabbitmq-diagnostics -t 5 -q ping || exit 1 +rabbitmq-diagnostics -t 5 -q status || exit 1 +rabbitmq-diagnostics -t 5 -q check_running || exit 1 +rabbitmq-diagnostics -t 5 -q check_local_alarms || exit 1 +rabbitmq-diagnostics -t 5 -q check_port_connectivity || exit 1 +rabbitmq-diagnostics -t 5 -q check_virtual_hosts || exit 1