From 89666126e1bb866820b75b05b1570e827a985e4e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 14 Jun 2016 09:30:18 +0200 Subject: [PATCH] net/haproxy: open up template on/off and run setup.sh on boot --- .../opnsense/service/templates/OPNsense/HAProxy/rc.conf.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/rc.conf.d b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/rc.conf.d index 48bb5a378..0d4f4b2f1 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/rc.conf.d +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/rc.conf.d @@ -1,4 +1,9 @@ -haproxy_enable="{% if helpers.exists('OPNsense.HAProxy.general.enabled') and OPNsense.HAProxy.general.enabled|default("0") == "1" %}YES{% else %}NO{% endif %}" +{% if helpers.exists('OPNsense.HAProxy.general.enabled') and OPNsense.HAProxy.general.enabled|default("0") == "1" %} +haproxy_enable=YES +haproxy_opnsense_bootup_run="/usr/local/opnsense/scripts/OPNsense/HAProxy/setup.sh" haproxy_pidfile="/var/run/haproxy.pid" haproxy_config="/usr/local/etc/haproxy.conf" # haproxy_flags="" +{% else %} +haproxy_enable=NO +{% endif %}