Skip to content

Instantly share code, notes, and snippets.

@james-huston
Created August 1, 2014 21:04
Show Gist options
  • Save james-huston/6f6957674f46cd4f4ce7 to your computer and use it in GitHub Desktop.
Save james-huston/6f6957674f46cd4f4ce7 to your computer and use it in GitHub Desktop.
Restart haproxy without killing it
#!/bin/bash
haproxy -f /etc/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment