Hi, I ran into this twice in last 2 days, where HAproxy fails to start in centOS 7.5. I compiled the latest stable from source and it did not have any startup scripts in the tarball that I downloaded. So, I broke up an older RPM file from fedora and used it /etc/init.d/haproxy script. It works fine for stop/start/restart , etc. -- but I noticed that systemd is killing haproxy , mostl likely on 'reload' .
Here is 'systemctl status haproxy' output: 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: signal) since Mon 2018-10-22 03:45:01 PDT; 6h ago Docs: man:systemd-sysv-generator(8) Process: 5939 ExecStop=/etc/rc.d/init.d/haproxy stop (code=exited, status=0/SUCCESS) Process: 5930 ExecReload=/etc/rc.d/init.d/haproxy reload (code=exited, status=0/SUCCESS) Process: 5387 ExecStart=/etc/rc.d/init.d/haproxy start (code=exited, status=0/SUCCESS) Main PID: 5937 (code=killed, signal=KILL) CGroup: /system.slice/haproxy.service Oct 21 19:14:29 crsplabnet2 haproxy[5395]: Proxy http_front started. Oct 21 19:14:29 crsplabnet2 haproxy[5387]: Starting haproxy: [ OK ] Oct 21 19:14:29 crsplabnet2 systemd[1]: Started SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.. Oct 22 03:45:01 crsplabnet2 haproxy[5936]: Proxy http_front started. Oct 22 03:45:01 crsplabnet2 haproxy[5936]: Proxy http_front started. Oct 22 03:45:01 crsplabnet2 systemd[1]: Reloaded SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.. Oct 22 03:45:01 crsplabnet2 systemd[1]: haproxy.service: main process exited, code=killed, status=9/KILL Oct 22 03:45:01 crsplabnet2 haproxy[5939]: Shutting down haproxy: [FAILED] Oct 22 03:45:01 crsplabnet2 systemd[1]: Unit haproxy.service entered failed state. Oct 22 03:45:01 crsplabnet2 systemd[1]: haproxy.service failed. Is there a different way this should be setup in centOS7.5 ? Some posts in GGL suggests a systemd-wrapper for HAproxy, but I do not see that in source tarball or I can't find it anywhere else. Any suggestion would be very helpful. Thanks.