diff --git a/addons/images/loadbalancer/haproxy_reload b/addons/images/loadbalancer/haproxy_reload index 31958700..f926705f 100755 --- a/addons/images/loadbalancer/haproxy_reload +++ b/addons/images/loadbalancer/haproxy_reload @@ -23,6 +23,6 @@ # -s soft reload, wait for pids to finish handling requests # -f send pids a resume signal if reload of new config fails -socat /tmp/haproxy - <<< "show servers state" > /var/state/haproxy/global +echo "show servers state" | socat /tmp/haproxy - > /var/state/haproxy/global haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -D -sf $(cat /var/run/haproxy.pid)