X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=units%2Fsystemd-networkd.service.in;h=5a91b8e499bb8a09d6aa7de1949781f11fd8379a;hp=fc3b14a6be7dd3149723a32084c8d65983e56d5e;hb=19e887e709c31ee4366ec44a770d3963cd48cb86;hpb=7da489e630d1c608179d7aea66342c0ec5440932 diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index fc3b14a6b..5a91b8e49 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -8,20 +8,25 @@ [Unit] Description=Network Service Documentation=man:systemd-networkd.service(8) +ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -After=dbus.service -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 -Restart=always +Restart=on-failure RestartSec=0 ExecStart=@rootlibexecdir@/systemd-networkd -CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_PTRACE CAP_SYS_MODULE +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 +Also=systemd-networkd.socket