summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-17 02:18:33 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-17 02:43:44 +0200
commit689d781b87164bc89554e2fecdf6fbb5725c0804 (patch)
treed2f445026623a2ea59517b9f6e67a415520475f0
parentac78d81a35fae1c10464992dac25f1527a05cbc9 (diff)
units: minor cleanups
-rw-r--r--units/systemd-networkd.service.in5
-rw-r--r--units/systemd-timesyncd.service.in5
2 files changed, 5 insertions, 5 deletions
diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in
index 8b0ea140c0..f33c65e6ff 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 network-pre.target systemd-sysusers.service
-Before=network.target
+Before=network.target multi-user.target shutdown.target
+Conflicts=shutdown.target
Wants=network.target
-ConditionCapability=CAP_NET_ADMIN
[Service]
Type=notify
diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in
index a20621dd58..17b60d08c4 100644
--- a/units/systemd-timesyncd.service.in
+++ b/units/systemd-timesyncd.service.in
@@ -9,13 +9,12 @@
Description=Network Time Synchronization
Documentation=man:systemd-timesyncd.service(8)
ConditionCapability=CAP_SYS_TIME
-DefaultDependencies=off
+DefaultDependencies=no
RequiresMountsFor=/var/lib/systemd/clock
After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.service
-Before=sysinit.target shutdown.target
+Before=time-sync.target sysinit.target shutdown.target
Conflicts=shutdown.target
Wants=time-sync.target
-Before=time-sync.target
[Service]
Type=notify