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