Created
April 9, 2014 06:12
-
-
Save blissdev/10230866 to your computer and use it in GitHub Desktop.
Restart haproxy gracefully
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Gracefully reloading haproxy..." | |
sudo haproxy -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) | |
echo "[done]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment