X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-networkd.service.in;h=fe92da21235f14aff3f73a4b888c031d2e79eb9e;hp=48f4d63a8727a3073799a1512b821db0bcabc600;hb=d5d78543a2174a6bae349080ed3bcfdac5610b48;hpb=a4a878d04045b46fa9783664e3643a890b356790 diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index 48f4d63a8..fe92da212 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -8,11 +8,14 @@ [Unit] Description=Network Service Documentation=man:systemd-networkd.service(8) +ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -After=dbus.service network-pre.target -Before=network.target +# dbus.service can be dropped once on kdbus, and systemd-udevd.service can be +# dropped once tuntap is moved to netlink +After=systemd-udevd.service dbus.service network-pre.target systemd-sysusers.service +Before=network.target multi-user.target shutdown.target +Conflicts=shutdown.target Wants=network.target -ConditionCapability=CAP_NET_ADMIN [Service] Type=notify @@ -25,5 +28,4 @@ ProtectHome=yes WatchdogSec=1min [Install] -Also=systemd-networkd-wait-online.service WantedBy=multi-user.target