aboutsummaryrefslogtreecommitdiff
path: root/docker/keepalived/check_alive.sh
blob: 8c2684f10b3434605562f0b1ca752533d32a374f (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:/run/haproxy.sock stdio