Created
January 22, 2014 23:52
-
-
Save boris/8570032 to your computer and use it in GitHub Desktop.
upstart file for haproxy
This file contains 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
# 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