Package: haproxy
Version: 1.4.15-1

The HAProxy init script /etc/init.d/haproxy checks for the existence of the config file with

CONFIG=/etc/haproxy/haproxy.cfg
...
test -f "$CONFIG" || exit 0

But the code which sources /etc/default/haproxy comes later in the script. This defies the ability to change the location of the config file in /etc/default/haproxy with the variable CONFIG.

I believe one should be able to change almost all arguments to the haproxy daemon including the location of the config file.

Now I have to make sure /etc/haproxy/haproxy.cfg exists even though I will never use it.

I think the solution would be to source the default file before the init script checks for the existence of the config file.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to