Created
October 27, 2014 01:05
-
-
Save schleg/105277aa6d1042760da3 to your computer and use it in GitHub Desktop.
HAProxy Service Config
This file contains hidden or 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
# /etc/init/haproxy.conf | |
description "HAProxy" | |
start on runlevel [2345] | |
stop on runlevel [016] | |
respawn | |
respawn limit 2 5 | |
env CONF=/etc/haproxy/haproxy.cfg | |
pre-start script | |
[ -r $CONF ] | |
end script | |
exec /usr/sbin/haproxy -d -f $CONF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment