aboutsummaryrefslogtreecommitdiff
path: root/docker/keepalived/check_alive.sh
blob: 9bb87d7b78c4fbdfc47842d2a1fd122f3192b5d9 (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