37e80efab2
This patch adds script for docker health check of Horizon. The script checks the service using curl. Change-Id: I6df8b738a356dbaa81be2de77247b4298aaed825
11 lines
309 B
Bash
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
|