56e05efc56
This patch adds script for docker health check of gnocchi-metricd service. The script checks existance of service with opened connections to Redis. Change-Id: Icbf450a797f95fb5966005295bd33975077e4aa5
15 lines
327 B
Bash
15 lines
327 B
Bash
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='gnocchi-metricd'
|
|
args="${@:-6379}"
|
|
|
|
if healthcheck_port $process $args; then
|
|
exit 0
|
|
else
|
|
ports=${args// /,}
|
|
echo "There is no $process process with opened Redis ports ($ports) running in the container"
|
|
exit 1
|
|
fi
|