summaryrefslogtreecommitdiff
path: root/docker/keepalived/check_alive.sh
blob: 929bb221a9be25900931b1007536f2e6867a2115 (plain)
1
2
3
4
5
6
#!/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 > /dev/null