haproxy/haproxy.service

19 lines
520 B
SYSTEMD
Raw Normal View History

2012-02-20 00:29:09 +00:00
[Unit]
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
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
2020-07-15 15:19:37 +00:00
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
ExecReload=/bin/kill -USR2 $MAINPID
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