[Unit] Description=HAProxy Load Balancer Documentation=man:haproxy(1) After=network.target [Service] Type=forking ExecStart=/usr/local/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds ExecReload=/usr/local/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds -sf $MAINPID TimeoutStartSec=120 Restart=on-failure RestartSec=5s PIDFile=/run/haproxy.pid [Install] WantedBy=multi-user.target