70b95c
[Unit]
70b95c
Description=HAProxy Load Balancer
f51465
After=network-online.target
f51465
Wants=network-online.target
70b95c
70b95c
[Service]
70b95c
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
f51465
EnvironmentFile=/etc/sysconfig/haproxy
f51465
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS
f51465
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $OPTIONS
f51465
ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS
70b95c
ExecReload=/bin/kill -USR2 $MAINPID
54aea5
SuccessExitStatus=143
70b95c
KillMode=mixed
70b95c
Type=notify
70b95c
70b95c
[Install]
70b95c
WantedBy=multi-user.target