aboutsummaryrefslogtreecommitdiff
path: root/docker/common
diff options
context:
space:
mode:
authorDuane DeCapite <ddecapit@cisco.com>2015-08-20 19:51:57 -0400
committerDuane DeCapite <ddecapit@cisco.com>2015-08-20 19:55:55 -0400
commit129f1d06a141c75643336399181ea157fb0dd82a (patch)
treea06fa6f4da77246b1485d64a1c904d9623d4bb91 /docker/common
parente51477e48c773433605ab5eefe8069a5159e08ad (diff)
downloadkolla-129f1d06a141c75643336399181ea157fb0dd82a.tar.gz
kolla-129f1d06a141c75643336399181ea157fb0dd82a.zip
Workaround for existing keepalived.pid file
Fixes issue where keepalived will not restart after container failure. Removes keepalived.pid file if one exists on container startup. Change-Id: I6ec3297a5e49a4d5255323aa7f75dfdc10d0c5ec Closes-Bug: #1485079
Diffstat (limited to 'docker/common')
-rwxr-xr-xdocker/common/keepalived/start.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/common/keepalived/start.sh b/docker/common/keepalived/start.sh
index 3c539d69d..a122526e4 100755
--- a/docker/common/keepalived/start.sh
+++ b/docker/common/keepalived/start.sh
@@ -12,4 +12,9 @@ set_configs
modprobe ip_vs
+# Workaround for bug #1485079
+if [ -f /run/keepalived.pid ]; then
+ rm /run/keepalived.pid
+fi
+
exec $CMD $ARGS