'pidfile' already specified

HAPROXY 2.8, Ubuntu 22.04

I’m seeing the following line in my haprox logs:

Nov 18 12:47:14 mail haproxy[75789]: [ALERT] (75789) : config : parsing [/etc/haproxy/haproxy.cfg:5] : 'pidfile' already specified. Continuing.

What’s the cause for this?

I have in my haproxy.cfg the following line:

pidfile /var/run/haproxy

Remove it.

Systemd takes care of it all, you do not and should not interfere with it.