Add systemd support (forwarded request 205020 from posophe) OBS-URL: https://build.opensuse.org/request/show/205022 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haproxy?expand=0&rev=2
14 lines
428 B
Desktop File
14 lines
428 B
Desktop File
[Unit]
|
|
Description=HAProxy For TCP And HTTP Based Applications
|
|
After=network.target
|
|
|
|
[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
|
|
ExecReload=/bin/bash -c "exec /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $MAINPID"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|