tripleo-common/healthcheck/ironic-inspector

13 lines
420 B
Plaintext
Raw Normal View History

#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='dnsmasq'
if pgrep $process; then
exit 0
else
bind_host=$(wrap_ipv6 $(get_config_val /etc/ironic-inspector/inspector.conf DEFAULT listen_address 127.0.0.1))
bind_port=$(get_config_val /etc/ironic-inspector/inspector.conf DEFAULT listen_port 5050)
healthcheck_curl http://${bind_host}:${bind_port}
fi