You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
581 B
19 lines
581 B
2 years ago
|
[Unit]
|
||
|
Description=HAProxy Load Balancer
|
||
|
After=network-online.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid" "CFGDIR=/etc/haproxy/conf.d"
|
||
|
EnvironmentFile=/etc/sysconfig/haproxy
|
||
|
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
|
||
|
ExecReload=/bin/kill -USR2 $MAINPID
|
||
|
SuccessExitStatus=143
|
||
|
KillMode=mixed
|
||
|
Type=notify
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|