Skip to content

Instantly share code, notes, and snippets.

@ahmadsoe
Created May 29, 2014 00:25
Show Gist options
  • Save ahmadsoe/1301cca1b28f5814f950 to your computer and use it in GitHub Desktop.
Save ahmadsoe/1301cca1b28f5814f950 to your computer and use it in GitHub Desktop.
Restart haproxy
#!/bin/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