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