diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-19 00:24:44 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-03-30 18:07:40 +0800 |
| commit | de6650874da1470f10d4561fd1e33829eaef3414 (patch) | |
| tree | 6985e502e5adc5b8533dd38d625b2d15bdd32da9 /docker/haproxy/extend_start.sh | |
| parent | 981d8206abbe3aab42af371c8d8a76face9406b4 (diff) | |
| download | kolla-de6650874da1470f10d4561fd1e33829eaef3414.tar.gz kolla-de6650874da1470f10d4561fd1e33829eaef3414.zip | |
Start the haproxy by using haproxy-system-wrapper
haproxy-system-wrapper is a solution for systemd from upstream. it can
handle the reload graceful.
Change-Id: I6a3d141af065e429bd1be1b7252f5c6df1fda3bb
Closes-Bug: #1559238
Diffstat (limited to 'docker/haproxy/extend_start.sh')
| -rw-r--r-- | docker/haproxy/extend_start.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/docker/haproxy/extend_start.sh b/docker/haproxy/extend_start.sh deleted file mode 100644 index e2d13f484..000000000 --- a/docker/haproxy/extend_start.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# We are intentionally not using exec so we can reload the haproxy config later -echo "Running command: '${CMD}'" -$CMD - -retry=0 -# The loop breaks only when haproxy.pid get missing even after 3 re-try. -while [[ $retry -lt 3 ]]; do - if [[ ! -e /run/haproxy.pid || ! -d /proc/$(cat /run/haproxy.pid) ]]; then - retry=$((retry+1)) - sleep 2 - continue - fi - retry=0 - sleep 5 -done - -exit 1 |
