diff options
| author | Michal Jastrzebski (inc0) <michal.jastrzebski@intel.com> | 2015-07-17 12:19:02 +0200 |
|---|---|---|
| committer | Michal Jastrzebski (inc0) <michal.jastrzebski@intel.com> | 2015-07-21 15:32:39 +0200 |
| commit | 38bed674bd522d8e23d5c9ca66d356c4c5884ce7 (patch) | |
| tree | ebac53445f55144b0c92d82d6cdd1c3d35e74828 /docker/common/haproxy/start.sh | |
| parent | 73028912069fb4048891a70842753a268cb5288b (diff) | |
| download | kolla-38bed674bd522d8e23d5c9ca66d356c4c5884ce7.tar.gz kolla-38bed674bd522d8e23d5c9ca66d356c4c5884ce7.zip | |
HAProxy container
This commit consists HAProxy container. It only supports config-external
as this requires orchiestration.
Change-Id: I0af28be4f3d4aa40c418f15c40c45630d0fd7c8d
Partially-implements: blueprint haproxy-container
Diffstat (limited to 'docker/common/haproxy/start.sh')
| -rwxr-xr-x | docker/common/haproxy/start.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docker/common/haproxy/start.sh b/docker/common/haproxy/start.sh new file mode 100755 index 000000000..68600f44e --- /dev/null +++ b/docker/common/haproxy/start.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -o errexit + +CMD='/usr/sbin/haproxy' +# Parameters: +# -db for non-daemon execution and logging to stdout +# -p pidfile to specify pidfile and allow hot reconfiguration +# loop which generates -f file.conf for each file in /etc/haproxy and /etc/haproxy/conf.d +ARGS="-db -f /etc/haproxy/haproxy.cfg" + +# Loading common functions. +source /opt/kolla/kolla-common.sh + +# Config-internal script exec out of this function, it does not return here. +set_configs + +exec $CMD $ARGS |
