Merge "Add new healthchecks for zaqar services"
This commit is contained in:
commit
3d593a4b3f
6
healthcheck/zaqar-api
Executable file
6
healthcheck/zaqar-api
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||
|
||||
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-zaqar_wsgi.conf)
|
||||
healthcheck_curl ${check_url}
|
15
healthcheck/zaqar-socket
Executable file
15
healthcheck/zaqar-socket
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||
|
||||
process=zaqar-server
|
||||
args="${@:-9000}"
|
||||
|
||||
if healthcheck_listen $process $args; then
|
||||
exit 0
|
||||
else
|
||||
ports=${args// /,}
|
||||
echo "There is no $process process, listening on port(s) $ports, running in the container."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user