net/haproxy: open up template on/off and run setup.sh on boot

This commit is contained in:
Franco Fichtner 2016-06-14 09:30:18 +02:00
parent e0a11f707b
commit 89666126e1

View file

@ -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 %}