|
|
8497ace |
[Unit]
|
|
|
57e2b7d |
Description=HAProxy Load Balancer
|
|
|
97273b4 |
After=network-online.target
|
|
|
97273b4 |
Wants=network-online.target
|
|
|
8497ace |
|
|
|
8497ace |
[Service]
|
|
|
97273b4 |
EnvironmentFile=-/etc/sysconfig/haproxy
|
|
|
e0e30f9 |
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
|
|
|
e0e30f9 |
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
|
|
|
e0e30f9 |
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -f $CFGDIR -p $PIDFILE $OPTIONS
|
|
|
e0e30f9 |
ExecReload=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
|
|
|
57e2b7d |
ExecReload=/bin/kill -USR2 $MAINPID
|
|
|
192031b |
KillMode=mixed
|
|
|
97273b4 |
SuccessExitStatus=143
|
|
|
2232e92 |
Type=notify
|
|
|
8497ace |
|
|
|
8497ace |
[Install]
|
|
|
8497ace |
WantedBy=multi-user.target
|