X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=units%2Fsystemd-networkd.service.in;h=f33c65e6ff07e433a3c81cddfc02183c3e630ba6;hb=799298d6513e7d40125c19d46578bb870d047db4;hp=3538295df4a8f48eee3dffc3ec89d6b6551bc88b;hpb=bddfc8afd329ac68a23f66a3512d4e249af25191;p=elogind.git diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index 3538295df..f33c65e6f 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -8,11 +8,12 @@ [Unit] Description=Network Service Documentation=man:systemd-networkd.service(8) +ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -After=dbus.service -Before=network.target +After=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 @@ -20,8 +21,9 @@ Restart=always RestartSec=0 ExecStart=@rootlibexecdir@/systemd-networkd CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER +ProtectSystem=full +ProtectHome=yes WatchdogSec=1min [Install] -Also=systemd-networkd-wait-online.service WantedBy=multi-user.target