networkd: use socket activation when starting networkd
authorMichael Biebl <biebl@debian.org>
Wed, 26 Aug 2020 14:54:45 +0000 (16:54 +0200)
committerMichael Biebl <biebl@debian.org>
Mon, 14 Sep 2020 06:04:39 +0000 (07:04 +0100)
commit672e378e4185867ae740f44f9fcbcb32cf28a13d
treeeb4549d4bc09bdd6b1dc09a3d78049c7b70538bf
parent58863d6448e64f18af56dcaead6b56abeaaae32c
networkd: use socket activation when starting networkd

Add After=systemd-networkd.socket to avoid a race condition and networkd
falling back to the non-socket activation code.

Also add Wants=systemd-networkd.socket, so the socket is started when
networkd is started via `systemctl start systemd-networkd.service`.
A Requires is not strictly necessary, as networkd still ships the
non-socket activation code. Should this code be removed one day, the
Wants should be bumped to Requires accordingly.

See also 5544ee85163733eaa50f598fcf3bd9421d4a42f9.

Fixes: #16809
(cherry picked from commit 2c0dffe82db574b6b9e850e48f444674e4e1d7ea)

Gbp-Pq: Name networkd-use-socket-activation-when-starting-networkd.patch
units/systemd-networkd.service.in