summaryrefslogtreecommitdiffstats
path: root/units/systemd-networkd-wait-online.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-05 17:34:40 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-05 21:44:45 +0100
commit882b011277593e3fe17f00fee67f49cdf7ffbdc5 (patch)
tree04ddd133d9def0fb871cbd0d59f5becac55978c1 /units/systemd-networkd-wait-online.service.in
parentdns-domain: dns_name_is_empty() is redundant (diff)
downloadsystemd-882b011277593e3fe17f00fee67f49cdf7ffbdc5.tar.xz
systemd-882b011277593e3fe17f00fee67f49cdf7ffbdc5.zip
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.
Diffstat (limited to 'units/systemd-networkd-wait-online.service.in')
-rw-r--r--units/systemd-networkd-wait-online.service.in1
1 files changed, 1 insertions, 0 deletions
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