2022-05-26 13:23:20 +00:00
|
|
|
[Unit]
|
|
|
|
Description=HAProxy Load Balancer
|
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2022-07-26 16:10:01 +00:00
|
|
|
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
|
2022-05-26 13:23:20 +00:00
|
|
|
EnvironmentFile=/etc/sysconfig/haproxy
|
2022-07-26 16:10:01 +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
|
2022-05-26 13:23:20 +00:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
|
|
SuccessExitStatus=143
|
|
|
|
KillMode=mixed
|
|
|
|
Type=notify
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|