install-reddit: Make sure to enable the haproxy service.

This commit is contained in:
Neil Williams
2012-08-13 11:50:07 -07:00
parent c63d336010
commit 4a5f5c7cb5

View File

@@ -310,6 +310,12 @@ if [ -e /etc/haproxy/haproxy.cfg ]; then
cat /etc/haproxy/haproxy.cfg > $BACKUP_HAPROXY
fi
# make sure haproxy is enabled
cat > /etc/default/haproxy <<DEFAULT
ENABLED=1
DEFAULT
# configure haproxy
cat > /etc/haproxy/haproxy.cfg <<HAPROXY
global
maxconn 100