blob: 68600f44ee60da8adb0ab9266aeb0548ce252545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|