Haproxy service start error


#1

When I start haproxy service without SSL certificate inclusion,loadbalancer starts without error,but when i include certification in cfg file,I got the following error.

● haproxy.service - SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.
Loaded: loaded (/etc/rc.d/init.d/haproxy; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-07-05 17:43:23 IST; 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 5287 ExecStart=/etc/rc.d/init.d/haproxy start (code=exited, status=1/FAILURE)
Main PID: 2981 (code=exited, status=0/SUCCESS)

Jul 05 17:43:23 PSSHSRDT022 haproxy[5287]: [STAT] level
Jul 05 17:43:23 PSSHSRDT022 haproxy[5287]: [ALERT] 185/174323 (5293) : parsing [/etc/haproxy/haproxy.cfg:51] : ‘listen’ cannot handle unexp…5:8443’.
Jul 05 17:43:23 PSSHSRDT022 haproxy[5287]: [ALERT] 185/174323 (5293) : parsing [/etc/haproxy/haproxy.cfg:51] : please use the ‘bind’ keywor…dresses.
Jul 05 17:43:23 PSSHSRDT022 haproxy[5287]: [ALERT] 185/174323 (5293) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
Jul 05 17:43:23 PSSHSRDT022 haproxy[5287]: [ALERT] 185/174323 (5293) : Fatal errors found in configuration.
Jul 05 17:43:23 PSSHSRDT022 haproxy[5287]: Errors found in configuration file, check it with ‘haproxy check’.
Jul 05 17:43:23 PSSHSRDT022 systemd[1]: haproxy.service: control process exited, code=exited status=1
Jul 05 17:43:23 PSSHSRDT022 systemd[1]: Failed to start SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high av…nments…
Jul 05 17:43:23 PSSHSRDT022 systemd[1]: Unit haproxy.service entered failed state.
Jul 05 17:43:23 PSSHSRDT022 systemd[1]: haproxy.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Kindly help on this issue.