chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: minor cleanups
[elogind.git]
/
units
/
systemd-networkd.service.in
diff --git
a/units/systemd-networkd.service.in
b/units/systemd-networkd.service.in
index 066d852e3c2a593b715652af727582c31ded06c0..f33c65e6ff07e433a3c81cddfc02183c3e630ba6 100644
(file)
--- a/
units/systemd-networkd.service.in
+++ b/
units/systemd-networkd.service.in
@@
-8,8
+8,11
@@
[Unit]
Description=Network Service
Documentation=man:systemd-networkd.service(8)
[Unit]
Description=Network Service
Documentation=man:systemd-networkd.service(8)
+ConditionCapability=CAP_NET_ADMIN
DefaultDependencies=no
DefaultDependencies=no
-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
[Service]
Wants=network.target
[Service]
@@
-17,3
+20,10
@@
Type=notify
Restart=always
RestartSec=0
ExecStart=@rootlibexecdir@/systemd-networkd
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]
+WantedBy=multi-user.target