Add healthcheck for nova-virtlogd container
Adds healthcheck for nova-virtlogd container by checking whether /var/run/libvirt/virtlogd-sock socket is opened or not in virtlogd container. Change-Id: I9c76855169448a125541c94d480a4afd49ff6d0e
This commit is contained in:
parent
abbd5c46f1
commit
cdbcf9ff75
|
@ -1,3 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
virsh version --daemon
|
||||
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
||||
|
||||
process=$1
|
||||
socket='/var/run/libvirt/virtlogd-sock'
|
||||
if [[ $process == "virtlogd" ]]; then
|
||||
healthcheck_socket $process $socket
|
||||
exit $?
|
||||
else
|
||||
virsh version --daemon
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue