tripleo-common/healthcheck/horizon
Martin Mágr 37e80efab2 Add healthcheck script for Horizon
This patch adds script for docker health check of Horizon.
The script checks the service using curl.

Change-Id: I6df8b738a356dbaa81be2de77247b4298aaed825
2018-03-26 14:31:41 +00:00

11 lines
309 B
Bash

#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/15-horizon_vhost.conf)
if healthcheck_curl ${check_url}; then
exit 0
else
healthcheck_curl $(get_url_from_vhost /etc/httpd/conf.d/15-horizon_ssl_vhost.conf)
fi