diff options
Diffstat (limited to 'docker/haproxy/start.sh')
| -rwxr-xr-x | docker/haproxy/start.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/docker/haproxy/start.sh b/docker/haproxy/start.sh index d1da4a607..629c85254 100755 --- a/docker/haproxy/start.sh +++ b/docker/haproxy/start.sh @@ -1,17 +1,15 @@ #!/bin/bash set -o errexit -CMD='/usr/sbin/haproxy' -ARGS="-f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid" - # Loading common functions. source /opt/kolla/kolla-common.sh -# Execute config strategy -set_configs +# Generate run command +python /opt/kolla/set_configs.py +CMD=$(cat /run_command) # We are intentionally not using exec so we can reload the haproxy config later -$CMD $ARGS +$CMD # TODO(SamYaple): This has the potential for a race condition triggered by a # config reload that could cause the container to exit |
