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, 21 Sep 2020 18:28:36 +0000 (19:28 +0100)
commit2f399e15a62226b76680c31cf778cca72372698a
treebd1b9330c22f2e7c8a5d282a760ce340524f407c
parent1eae3e501a3d4166cfb8095cefb87534d074fede
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