kolla-ansible/docker/keepalived/check_alive.sh
SamYaple 7ddad3f3d5 Move haproxy socket to volume
Partial-Bug: #1544545
Change-Id: I292bcaeacb080ff4c5ab6b42b7d899039d6b19c4
2016-02-17 14:45:59 +00:00

7 lines
199 B
Bash

#!/bin/bash
# This will return 0 when it successfully talks to the haproxy daemon via the socket
# Failures return 1
echo "show info" | socat unix-connect:/var/lib/kolla/haproxy/haproxy.sock stdio