* released 1.1.27
* the configurable HTTP health check introduced in 1.1.23 revealed a shameful
bug : the code still assumed that HTTP requests were the same size as the
original ones (22 bytes), and failed if they were not.
* added support for pidfiles.
diff --git a/examples/config.rc.haproxy b/examples/config.rc.haproxy
index 067f07a..5340495 100644
--- a/examples/config.rc.haproxy
+++ b/examples/config.rc.haproxy
@@ -1,3 +1,6 @@
-service haproxy
- config /etc/haproxy/haproxy.cfg
+service haproxy ext
+ config /etc/haproxy/haproxy-ext.cfg
+
+service haproxy int
+ config /etc/haproxy/haproxy-int.cfg
diff --git a/examples/init.haproxy.flx0 b/examples/init.haproxy.flx0
index aa5f0cb..4b73bd8 100644
--- a/examples/init.haproxy.flx0
+++ b/examples/init.haproxy.flx0
@@ -4,7 +4,7 @@
option config standard_option /etc/haproxy/haproxy.cfg
option bin reserved_option /usr/sbin/haproxy
-option cmdline reserved_option '$bin -q -D -f ${opt_config}'
+option cmdline reserved_option '$bin -f ${opt_config} -p ${pidfile} -D -q'
function do_help {
echo "Usage: ${0##*/} <status|start|stop|help>"
@@ -15,6 +15,10 @@
exit 1
}
+# assign default values to options and variables before parsing the cfg file
+function fct_begin_section {
+ pidfile="/var/run/haproxy${2:+-$2}.pid"
+}
load_config