kolla/docker/keepalived/check_alive.sh
Jeffrey Zhang 386825d6ff Prevent check haproxy script from generating meaningless logs
Redirect the logs into /dev/null. Otherwise, it will be collected by
docker engine, which is meaningless.

Change-Id: I7d1d4cac61e62144bc11c26e7b00fc21037eb8d1
Closes-Bug: #1708097
2017-08-07 05:53:19 +00:00

7 lines
211 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 > /dev/null