haproxy/SOURCES/haproxy.service

19 lines
519 B
SYSTEMD
Raw Normal View History

2019-05-07 10:46:27 +00:00
[Unit]
Description=HAProxy Load Balancer
2020-11-03 12:11:39 +00:00
After=network-online.target
Wants=network-online.target
2019-05-07 10:46:27 +00:00
[Service]
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
2020-11-03 12:11:39 +00:00
EnvironmentFile=/etc/sysconfig/haproxy
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $OPTIONS
ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q $OPTIONS
2019-05-07 10:46:27 +00:00
ExecReload=/bin/kill -USR2 $MAINPID
2020-04-28 08:50:17 +00:00
SuccessExitStatus=143
2019-05-07 10:46:27 +00:00
KillMode=mixed
Type=notify
[Install]
WantedBy=multi-user.target