2019-05-07 10:46:27 +00:00
|
|
|
[Unit]
|
|
|
|
Description=HAProxy Load Balancer
|
2020-11-03 12:11:39 +00:00
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
2019-05-07 10:46:27 +00:00
|
|
|
|
|
|
|
[Service]
|
2022-11-08 06:48:30 +00:00
|
|
|
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
|
2020-11-03 12:11:39 +00:00
|
|
|
EnvironmentFile=/etc/sysconfig/haproxy
|
2022-11-08 06:48:30 +00:00
|
|
|
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
|
|
|
|
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -f $CFGDIR -p $PIDFILE $OPTIONS
|
|
|
|
ExecReload=/usr/sbin/haproxy -f $CONFIG -f $CFGDIR -c -q $OPTIONS
|
2019-05-07 10:46:27 +00:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
2020-04-28 08:50:17 +00:00
|
|
|
SuccessExitStatus=143
|
2019-05-07 10:46:27 +00:00
|
|
|
KillMode=mixed
|
|
|
|
Type=notify
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|