Last active
December 2, 2015 15:13
-
-
Save x-cray/1fca220a35fecce7b6a7 to your computer and use it in GitHub Desktop.
Gracefully reloads HAProxy configuration on Linux
This file contains hidden or 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
#!/bin/bash | |
iptables -I INPUT -p tcp --dport 80 --syn -j DROP | |
sleep 0.2 | |
systemctl reload haproxy | |
iptables -D INPUT -p tcp --dport 80 --syn -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment