79a1a4b275
Change-Id: I3cbf754ea9c037df8b95eb6f83dbe8ce09bfd717 Signed-off-by: Pablo Iranzo Gómez <Pablo.Iranzo@gmail.com>
14 lines
393 B
Bash
Executable File
14 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
|
|
|
|
process='ovn-northd'
|
|
sockets="${@:-/run/openvswitch/ovnnb_db.sock /run/openvswitch/ovnsb_db.sock}"
|
|
|
|
for sock in sockets; do
|
|
if ! healthcheck_socket $process $sock; then
|
|
echo "There is no $process process connected to socket $sock running in the container"
|
|
exit 1
|
|
fi
|
|
done
|