]> git.kaiwu.me - haproxy.git/commit
MEDIUM: admin: haproxy-reload conversion to POSIX sh
authorWilliam Lallemand <wlallemand@irq6.net>
Sun, 8 Mar 2026 00:10:45 +0000 (01:10 +0100)
committerWilliam Lallemand <wlallemand@irq6.net>
Sun, 8 Mar 2026 00:37:52 +0000 (01:37 +0100)
commit2a0cf52cfc3a7290d1e016b9e2877638462101ac
tree07c5c4b3970e96bef4b5a546c5a6bf20caca46d8
parent551e5f5fd46ef6a6196128ec8c91a9ec29124885
MEDIUM: admin: haproxy-reload conversion to POSIX sh

The script relied on a bash-specific process substitution (< <(...)) to
feed socat's output into the read loop. This is replaced with a standard
POSIX pipe into a command group.

The response parsing is also simplified: instead of iterating over each
line with a while loop and echoing them individually, the status line is
read first, the "--" separator consumed, and the remaining output is
streamed to stderr or discarded as a whole depending on the verbosity
level.

Could be backported to 3.3 as it makes it more portable, but introduce a
slight change in the error format.
admin/cli/haproxy-reload