Skip to content

Instantly share code, notes, and snippets.

@schleg
Created October 27, 2014 01:05
Show Gist options
  • Save schleg/105277aa6d1042760da3 to your computer and use it in GitHub Desktop.
Save schleg/105277aa6d1042760da3 to your computer and use it in GitHub Desktop.
HAProxy Service Config
# /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