mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
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.
3.0 KiB
3.0 KiB