From 882b011277593e3fe17f00fee67f49cdf7ffbdc5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 5 Jan 2023 17:34:40 +0100 Subject: units: condition systemd-networkd-wait-online.service like systemd-networkd.service 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'units') diff --git a/units/systemd-networkd-wait-online.service.in b/units/systemd-networkd-wait-online.service.in index 09698fc535..3dc5ce9265 100644 --- a/units/systemd-networkd-wait-online.service.in +++ b/units/systemd-networkd-wait-online.service.in @@ -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 -- cgit v1.2.1