3e58595cf8
This patch adds script for docker health check of gnocchi-statsd service. The script checks existance of service with opened connections to Redis. Change-Id: I5f8f687eecead27accb4401f9aa00aaca63ff6df
15 lines
326 B
Bash
15 lines
326 B
Bash
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='gnocchi-statsd'
|
|
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
|