diff --git a/service/haproxy/run b/service/haproxy/run index ca91dabf..52ee4d18 100755 --- a/service/haproxy/run +++ b/service/haproxy/run @@ -38,7 +38,7 @@ reload() { socat /var/run/haproxy/socket - <<< "show servers state" > /var/state/haproxy/global # Trigger reload - haproxy -p $PIDFILE -f /marathon-lb/haproxy.cfg -D -sf $(cat $PIDFILE) + haproxy -p $PIDFILE -f /marathon-lb/haproxy.cfg -D -sf $(pidof haproxy) # Remove the firewall rules removeFirewallRules