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
This commit is contained in:
parent
40fc132c67
commit
37e80efab2
10
healthcheck/horizon
Normal file
10
healthcheck/horizon
Normal file
@ -0,0 +1,10 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user