stack/erp5: socat wrapper to get haproxy stats
haproxy can be controlled with this socket, so it might be useful to "expose" it - it's not really expose because we only use a UNIX socket.
... | @@ -256,6 +256,15 @@ wrapper-path = ${directory:services-on-watch}/haproxy | ... | @@ -256,6 +256,15 @@ wrapper-path = ${directory:services-on-watch}/haproxy |
command-line = "{{ parameter_dict['haproxy'] }}/sbin/haproxy" -f "${haproxy-cfg:rendered}" | command-line = "{{ parameter_dict['haproxy'] }}/sbin/haproxy" -f "${haproxy-cfg:rendered}" | ||
hash-files = ${haproxy-cfg:rendered} | hash-files = ${haproxy-cfg:rendered} | ||
[{{ section('haproxy-socat-stats')}}] | |||
recipe = collective.recipe.template | |||
output = ${directory:bin}/${:_buildout_section_name_} | |||
mode = 700 | |||
input = | |||
inline: | |||
#!/bin/sh | |||
"{{ parameter_dict['socat'] }}/bin/socat" unix-connect:${haproxy-cfg-parameter-dict:stats-socket} stdio | |||
|
|||
[rsyslogd-cfg-parameter-dict] | [rsyslogd-cfg-parameter-dict] | ||
log-socket = ${directory:run}/log.sock | log-socket = ${directory:run}/log.sock | ||
access-log-file = ${directory:log}/apache-access.log | access-log-file = ${directory:log}/apache-access.log | ||
... | ... |