Bug #11756
openHaProxy does not transfer backend states during reload
0%
Description
When reloading Haproxy (due to config changes for instance) the newly started process does not seem to remember the existing backend status.
The generated haproxy config does contain: server-state-file /tmp/haproxy_server_state
and the haproxy packages writes the server state before reloading: https://github.com/pfsense/FreeBSD-ports/blob/devel/net/pfSense-pkg-haproxy/files/usr/local/pkg/haproxy/haproxy.inc#L2344-L2345
but it seems to miss the configuration to actually load those during start: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#load-server-state-from-file
Now I wonder if this is on purpose or if this is an oversight. I added "load-server-state-from-file global" to the defaults section and manually reloaded haproxy and all backends kept their previous state.