haproxy/haproxy.service

14 lines
442 B
SYSTEMD
Raw Normal View History

2012-02-20 00:29:09 +00:00
[Unit]
Description=HAProxy For TCP And HTTP Based Applications
2012-02-20 00:57:09 +00:00
After=syslog.target network.target
2012-02-20 00:29:09 +00:00
[Service]
Type=forking
PIDFile=/run/haproxy.pid
ExecStartPre=/usr/sbin/haproxy -c -q -f /etc/haproxy/haproxy.cfg
ExecStart=/usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid
2012-02-20 00:57:09 +00:00
ExecReload=/bin/bash -c "exec /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID"
2012-02-20 00:29:09 +00:00
[Install]
WantedBy=multi-user.target