kolla-ansible/docker/keepalived/extend_start.sh
Éric Lemoine 3fca4ccbaf Make Heka collect HAProxy and Keepalived logs
Partially implements: blueprint heka
Change-Id: I7e2bf4e520fa14fd40e3b329f3b2998ae6ea47f4
2016-02-19 20:32:10 +00:00

14 lines
368 B
Bash

#!/bin/bash
# NOTE(elemoine): keepalived cannot be configured to change the log address to
# anything other than /dev/log. Heka's log socket is at /var/lib/kolla/heka/log
# so we symlink /dev/log to that location.
ln -sf /var/lib/kolla/heka/log /dev/log
modprobe ip_vs
# Workaround for bug #1485079
if [ -f /run/keepalived.pid ]; then
rm /run/keepalived.pid
fi