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
This commit is contained in:
Michal Nasiadka 2024-01-09 15:34:12 +01:00
parent cff75f6eac
commit f1331fa887
1 changed files with 1 additions and 3 deletions

View File

@ -35,6 +35,4 @@ fi
{% endif %}
{% endif %}
find /etc/haproxy/services.d/ -mindepth 1 -print0 | \
xargs -0 -Icfg echo -f cfg | \
xargs /usr/sbin/haproxy -W -db -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg
exec /usr/sbin/haproxy -W -db -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/services.d/