aboutsummaryrefslogtreecommitdiff
path: root/docker/keepalived/check_alive.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/keepalived/check_alive.sh')
-rwxr-xr-xdocker/keepalived/check_alive.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/keepalived/check_alive.sh b/docker/keepalived/check_alive.sh
new file mode 100755
index 000000000..8c2684f10
--- /dev/null
+++ b/docker/keepalived/check_alive.sh
@@ -0,0 +1,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