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