Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4720

Service Won't Start

$
0
0

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

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>