Merge "Add healthcheck for nova-virtlogd container"

This commit is contained in:
Zuul 2019-11-22 02:02:04 +00:00 committed by Gerrit Code Review
commit 0a71184280
1 changed files with 10 additions and 1 deletions

View File

@ -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