diff options
| author | Steven Dake <stdake@cisco.com> | 2015-08-27 18:13:04 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-08-28 00:50:29 -0700 |
| commit | 2cbccd7dc188c30ca81b1e96330df36425b0cf17 (patch) | |
| tree | e2427a2ff03abbc2ebf1be750e233454fd15bb2e /docker_templates/keepalived/start.sh | |
| parent | bd32c7a2dc0b10b0be209f969b2f8b4ad87c55f7 (diff) | |
| download | kolla-2cbccd7dc188c30ca81b1e96330df36425b0cf17.tar.gz kolla-2cbccd7dc188c30ca81b1e96330df36425b0cf17.zip | |
Move scripts for keepalive to docker_templates
Change-Id: I67ebbfa5a89b5d5c6ab2db78ded10151b95f7337
Partially-Implements: blueprint remove-docker-dir
Diffstat (limited to 'docker_templates/keepalived/start.sh')
| -rwxr-xr-x[l---------] | docker_templates/keepalived/start.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/docker_templates/keepalived/start.sh b/docker_templates/keepalived/start.sh index 65aea95d0..a122526e4 120000..100755 --- a/docker_templates/keepalived/start.sh +++ b/docker_templates/keepalived/start.sh @@ -1 +1,20 @@ -../../docker/common/keepalived/start.sh
\ No newline at end of file +#!/bin/bash +set -o errexit + +CMD="/usr/sbin/keepalived" +ARGS="-nld -p /run/keepalived.pid" + +# Loading common functions. +source /opt/kolla/kolla-common.sh + +# Execute config strategy +set_configs + +modprobe ip_vs + +# Workaround for bug #1485079 +if [ -f /run/keepalived.pid ]; then + rm /run/keepalived.pid +fi + +exec $CMD $ARGS |
