chiark / gitweb /
units: rebuild /etc/passwd, the udev hwdb and the journal catalog files on boot
[elogind.git] / units / systemd-networkd.service.in
index 95205cdee9914d5a5cba3675ce9d4c3b37a4c0cf..57c3fbff51ee8bff9022007458230853acc3c855 100644 (file)
@@ -9,12 +9,21 @@
 Description=Network Service
 Documentation=man:systemd-networkd.service(8)
 DefaultDependencies=no
+After=dbus.service network-pre.target systemd-sysusers.service
 Before=network.target
 Wants=network.target
+ConditionCapability=CAP_NET_ADMIN
 
 [Service]
 Type=notify
 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