Skip to content

Instantly share code, notes, and snippets.

@blissdev
Created April 9, 2014 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save blissdev/10230866 to your computer and use it in GitHub Desktop.
Save blissdev/10230866 to your computer and use it in GitHub Desktop.
Restart haproxy gracefully
#!/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