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