aboutsummaryrefslogtreecommitdiff
path: root/docker/keepalived/extend_start.sh
blob: 0cb79767e6753a63f909065d9f58e3d63f603524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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.
if [[ ! -h /dev/log ]]; then
    ln -sf /var/lib/kolla/heka/log /dev/log
fi

modprobe ip_vs

# Workaround for bug #1485079
if [ -f /run/keepalived.pid ]; then
    rm /run/keepalived.pid
fi