Skip to content

Instantly share code, notes, and snippets.

View gfrey's full-sized avatar

Gereon Frey gfrey

View GitHub Profile
@gfrey
gfrey / gist:8472007
Created January 17, 2014 11:34
Upstart script for haproxy with support for reload.
description "Properly handle haproxy"
start on startup
env PID_PATH=/var/run/haproxy.pid
env BIN_PATH=/usr/sbin/haproxy
script
exec /bin/bash <<EOF
$BIN_PATH -f /etc/haproxy.cfg -D -p $PID_PATH