]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: systemd: Use the variables from /etc/default/haproxy
authorApollon Oikonomopoulos <apoikos@debian.org>
Mon, 6 May 2019 11:00:52 +0000 (13:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 7 May 2019 12:11:55 +0000 (14:11 +0200)
commitb06014869ee560e2caecab6f5618c9a8e3ac4bfb
tree32415e1a0bc6895db4b64533d740f22537ee8ca4
parent56996dabe67b484b7c0e90192539c57e60483751
MINOR: systemd: Use the variables from /etc/default/haproxy

This will allow seamless upgrades from the sysvinit system while respecting
any changes the users may have made. It will also make local configuration
easier than overriding the systemd unit file.

Note by Tim:

This GPL-2 licensed patch was taken from the Debian project at [1].

It was slightly modified to cleanly apply, because HAProxy's default unit
file does not include rsyslog.service as an 'After' dependency. Also the
subject line was modified to include the proper subsystem and severity.

This patch may be backported to 1.9.

[1] https://salsa.debian.org/haproxy-team/haproxy/blob/master/debian/patches/haproxy.service-use-environment-variables.patch

Co-authored-by: Tim Duesterhus <tim@bastelstu.be>
contrib/systemd/haproxy.service.in