Skip to content
Snippets Groups Projects
Commit f1331fa8 authored by Michal Nasiadka's avatar Michal Nasiadka
Browse files

haproxy: Use -f configdir instead of for and xargs

-f configdir has been supported in HaProxy since 1.7

Partial-Bug: #2048130
Change-Id: Icb95cb072cb3eb5c27ffd79a127069bfcf21a61a
parent cff75f6e
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,4 @@ fi ...@@ -35,6 +35,4 @@ fi
{% endif %} {% endif %}
{% endif %} {% endif %}
find /etc/haproxy/services.d/ -mindepth 1 -print0 | \ exec /usr/sbin/haproxy -W -db -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/services.d/
xargs -0 -Icfg echo -f cfg | \
xargs /usr/sbin/haproxy -W -db -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment