HAProxy community

Unable to start HAProxy

I can start haproxy in foreground mode by following command:
haproxy -f /etc/haproxy/haproxy.cfg
and able to connect.
But when I try to start it in background mode using:
systemctl start haproxy.service
It doesn’t throw any error but I observed connectivity failure and when I check the service status using command service haproxy status found service is not active. I also tried command service haproxy restart but no success. How can I start HAProxy service in background mode? I have attached the haproxy.cfg(sample file) .HaProxy


You should add the keyword daemon in your global section.