kolla/docker/rabbitmq/healthcheck_rabbitmq
Michal Nasiadka 36df37be31 rabbitmq: Use timeout in healthcheck script
Currently we don't set timeout and the default is infinity.

Change-Id: Id1a87995a36e202fc0aaf82daf022ec10d78e37d
2023-11-22 06:48:07 +00:00

11 lines
344 B
Bash

#!/bin/bash
set -e
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