haproxy/haproxy.service

16 lines
396 B
SYSTEMD
Raw Normal View History

2012-02-20 00:29:09 +00:00
[Unit]
Description=HAProxy Load Balancer
2018-01-05 16:00:24 +00:00
After=network.target
2012-02-20 00:29:09 +00:00
[Service]
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q
2018-01-05 16:00:24 +00:00
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE
ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=mixed
2018-01-05 16:00:24 +00:00
Type=notify
2012-02-20 00:29:09 +00:00
[Install]
WantedBy=multi-user.target