mirror of https://github.com/easzlab/kubeasz.git
14 lines
357 B
Django/Jinja
14 lines
357 B
Django/Jinja
[Unit]
|
|
Description=HAProxy Load Balancer
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/sysconfig/haproxy
|
|
ExecStartPre=/usr/bin/mkdir /run/haproxy
|
|
ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid $OPTIONS
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
KillMode=mixed
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|