HAProxy community

Service Won't Start

On CentOS I tried compiling the latest 2.3-dev5 version. Seems OK but I can’t get it to start and the config file tests fine. Seems to be the service startup file maybe? Getting:

Oct 03 17:21:17 haproxy.local systemd[1]: haproxy.service: Main process exited, code=exited, status=1/FAILURE
Oct 03 17:21:17 haproxy.local systemd[1]: haproxy.service: Failed with result ‘exit-code’.
Oct 03 17:21:17 haproxy.local systemd[1]: Failed to start HAProxy Load Balancer.
Oct 03 17:21:18 haproxy.local systemd[1]: haproxy.service: Service RestartSec=100ms expired, scheduling restart.
Oct 03 17:21:18 haproxy.local systemd[1]: haproxy.service: Scheduled restart job, restart counter is at 5.
Oct 03 17:21:18 haproxy.local systemd[1]: Stopped HAProxy Load Balancer.
Oct 03 17:21:18 haproxy.local systemd[1]: haproxy.service: Start request repeated too quickly.
Oct 03 17:21:18 haproxy.local systemd[1]: haproxy.service: Failed with result ‘exit-code’.
Oct 03 17:21:18 haproxy.local systemd[1]: Failed to start HAProxy Load Balancer.

My service file contains:

[Unit]
Description=HAProxy Load Balancer
After=network-online.target

[Service]
Environment=LD_LIBRARY_PATH=/usr/local/openssl-1.1.1h/lib/
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "EXTRAOPTS=-S /run/haproxy-master.sock"
ExecStartPre=/usr/local/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS
ExecStart=/usr/local/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS
ExecReload=/usr/local/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=mixed
Restart=always
SuccessExitStatus=143
Type=notify

[Install]
WantedBy=multi-user.target

What happens if you start it manually?