4f5a275086
Zaqar has 2 containers, one for API (wsgi) and a second one for websocket (python). We therefore want to ensure the ports are in use in the containers. Change-Id: I0d5ea0ba630714f7ec3ca4f1361e3235320e52d7
16 lines
323 B
Bash
Executable File
16 lines
323 B
Bash
Executable File
#!/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
|
|
|