aboutsummaryrefslogtreecommitdiffstats
path: root/main/haproxy/haproxy.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-08-24 08:34:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-08-16 12:50:06 +0000
commit46a35a60f530a6dc385c5f2d9fb91b8e2c7b41c3 (patch)
treedb5d3d4be169ff32fda7e5cce4b3f2e37ba5ace5 /main/haproxy/haproxy.initd
parent39fe9fe32eab1af8d3bbfd40ded256f4d3df674a (diff)
downloadaports-46a35a60f530a6dc385c5f2d9fb91b8e2c7b41c3.tar.bz2
aports-46a35a60f530a6dc385c5f2d9fb91b8e2c7b41c3.tar.xz
main/haproxy: allow user override config file location
Use HAPROXY_CONF=/etc/mylocation.cfg in /etc/conf.d/haproxy ref #1339
Diffstat (limited to 'main/haproxy/haproxy.initd')
-rw-r--r--main/haproxy/haproxy.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/haproxy/haproxy.initd b/main/haproxy/haproxy.initd
index 7855afa043..3d48ab96eb 100644
--- a/main/haproxy/haproxy.initd
+++ b/main/haproxy/haproxy.initd
@@ -7,7 +7,7 @@ extra_commands="checkconfig"
extra_started_commands="reload"
command=/usr/sbin/haproxy
-CONFFILE=/etc/${SVCNAME}.cfg
+CONFFILE=${HAPROXY_CONF:-/etc/${SVCNAME}.cfg}
PIDFILE=/var/run/${SVCNAME}.pid
depend() {