2012-02-20 00:29:09 +00:00
|
|
|
[Unit]
|
2014-08-06 18:04:20 +00:00
|
|
|
Description=HAProxy Load Balancer
|
2020-07-15 15:19:37 +00:00
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
2012-02-20 00:29:09 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-07-15 15:19:37 +00:00
|
|
|
EnvironmentFile=-/etc/sysconfig/haproxy
|
2022-06-03 21:44:53 +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
|
2014-08-06 18:04:20 +00:00
|
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
2017-05-01 17:04:03 +00:00
|
|
|
KillMode=mixed
|
2020-07-15 15:19:37 +00:00
|
|
|
SuccessExitStatus=143
|
2018-01-05 16:00:24 +00:00
|
|
|
Type=notify
|
2012-02-20 00:29:09 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|