2018-04-16 21:01:16 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
|
|
|
|
process='dnsmasq'
|
|
|
|
if pgrep $process; then
|
2021-07-02 03:38:58 +00:00
|
|
|
exit 0
|
2018-04-16 21:01:16 +00:00
|
|
|
else
|
2020-02-11 22:15:19 +00:00
|
|
|
bind_host=$(wrap_ipv6 $(get_config_val /etc/ironic-inspector/inspector.conf DEFAULT listen_address 127.0.0.1))
|
2018-04-16 21:01:16 +00:00
|
|
|
bind_port=$(get_config_val /etc/ironic-inspector/inspector.conf DEFAULT listen_port 5050)
|
|
|
|
healthcheck_curl http://${bind_host}:${bind_port}
|
|
|
|
fi
|