rabbitmq: Use timeout in healthcheck script

Currently we don't set timeout and the default is infinity.

Change-Id: Id1a87995a36e202fc0aaf82daf022ec10d78e37d
(cherry picked from commit 36df37be31)
This commit is contained in:
Michal Nasiadka 2023-06-20 09:17:21 +02:00 committed by Mark Goddard
parent 82fe255055
commit 1eb0f2bf5b

View File

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