]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: condition systemd-networkd-wait-online.service like systemd-networkd.service
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Jan 2023 16:34:40 +0000 (17:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Jan 2023 20:44:45 +0000 (21:44 +0100)
This adds the same condition that systemd-networkd.service already
carries also to systemd-networkd-wait-online.service. Otherwise we'll
potentially see some logs we'd rather not see about a service we BindTo=
not running. Or in other words, if service X binds to Y then X should be
at least as conditioned as Y.

units/systemd-networkd-wait-online.service.in

index 09698fc535d2090fd4259372bd4b1e7759019df6..3dc5ce9265277f40210a6a1741105f656f5baff6 100644 (file)
@@ -10,6 +10,7 @@
 [Unit]
 Description=Wait for Network to be Configured
 Documentation=man:systemd-networkd-wait-online.service(8)
+ConditionCapability=CAP_NET_ADMIN
 DefaultDependencies=no
 Conflicts=shutdown.target
 BindsTo=systemd-networkd.service