26a3d7e6d0
This change fixes few linting errors which are discovered by newer linters. - bashate: consistent 4 chars identation - python unamed Exceptions - python space around operators - python space after # comments - python unused imports - python unknown escapes (errors after py36) - python double newline before methods Change-Id: I5d2f37d1c820b1983355be60c09de581a72e08e0 Needed-By: https://review.opendev.org/#/c/665445/
16 lines
331 B
Bash
Executable File
16 lines
331 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
|
|
|