febb1d
[Unit]
febb1d
Description=HAProxy Load Balancer
a31985
After=network-online.target
a31985
Wants=network-online.target
febb1d
febb1d
[Service]
a5c65b
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
a31985
EnvironmentFile=/etc/sysconfig/haproxy
a5c65b
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
a5c65b
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -f $CFGDIR -p $PIDFILE $OPTIONS
a5c65b
ExecReload=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -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