Files
nixpkgs/nixos/modules/services/networking/haproxy.nix
Sam Pointon 50281dab55 nixos/haproxy: drop redundant and faulty config check
See https://github.com/haproxy/haproxy/issues/3341.

There are multiple issues with the current code:

0. It doesn't work at all if you're doing socket activation and passing 
file descriptors to HAProxy to bind to: systemd doesn't pass the FDs in 
ExecStartPre, but haproxy -c requires them.

1. More generally, HAProxy upstream recommends making the invocation of 
haproxy -c identical to the actual invocation of haproxy. This is 
awkward to achieve without putting the check immediately before the 
service start... but what's the point in that when it fails anyway?

2. Hence, upstream recommends just removing the check and letting the 
(re)start fail if it's going to.

So, let's just do that and remove it: the check isn't load bearing and 
is actively causing problems.
2026-06-09 14:39:28 +01:00

3.0 KiB