Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Use pidof instead of pidfile w/ reload.
Browse files Browse the repository at this point in the history
When doing a graceful reload, use `pidof haproxy` rather than catting
the pidfile to make sure that we send SIGUSR1 to _all_ existing HAProxy
instances.

This is to address #267.
  • Loading branch information
brndnmtthws committed Jul 18, 2016
1 parent f2f23c8 commit 8fbccf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/haproxy/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fbccf7

Please sign in to comment.