BUG/MINOR: systemd: Wait for network to be online
authorRyan O'Hara <rohara@redhat.com>
Mon, 15 Jun 2020 16:34:54 +0000 (11:34 -0500)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jul 2020 17:03:54 +0000 (19:03 +0200)
commit4269a0b5d0091abb8f2b85bfcbea256170f535c1
tree66e17473425c4b3a787df9212f2b8f29071c4b24
parent5baab7460cf976c26a0afa8433ff41a36b5d9a4e
BUG/MINOR: systemd: Wait for network to be online

Change systemd service file to wait for network to be completely
online. This solves two problems:

If haproxy is configured to bind to IP address(es) that are not yet
assigned, haproxy would previously fail. The workaround is to use
"option transparent".

If haproxy us configured to use a resolver to resolve servers via DNS,
haproxy would previously fail due to the fact that the network is not
fully online yet. This is the most compelling reason for this patch.

Signed-off-by: Ryan O'Hara <rohara@redhat.com>
Acked-by: Lukas Tribus <lukas@ltri.eu>
(cherry picked from commit f49a6049b88b7a9f0f0a18b076f34ab83820445a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
contrib/systemd/haproxy.service.in