Skip to content

Instantly share code, notes, and snippets.

@boris
Created January 22, 2014 23:52
Show Gist options
  • Save boris/8570032 to your computer and use it in GitHub Desktop.
Save boris/8570032 to your computer and use it in GitHub Desktop.
upstart file for haproxy
# HAProxy
description "HAProxy"
start on runlevel [2345]
stop on runlevel [016]
respawn
respawn limit 2 5
limit nofile 100000 150000
env CONF=/etc/haproxy/haproxy.cfg
pre-start script
[ -r $CONF ]
end script
exec /usr/sbin/haproxy -db -f $CONF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment