haproxy/haproxy.service

15 lines
410 B
SYSTEMD
Raw Normal View History

2012-02-20 00:29:09 +00:00
[Unit]
Description=HAProxy Load Balancer
2012-02-20 00:57:09 +00:00
After=syslog.target 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
ExecStart=/usr/sbin/haproxy-systemd-wrapper -f $CONFIG -p $PIDFILE
ExecReload=/usr/sbin/haproxy -f $CONFIG -c -q
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=mixed
2012-02-20 00:29:09 +00:00
[Install]
WantedBy=multi-user.target