summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
Diffstat (limited to 'units')
-rw-r--r--units/machine.slice4
-rw-r--r--units/system.slice1
-rw-r--r--units/systemd-logind.service.in3
-rw-r--r--units/user.slice4
4 files changed, 5 insertions, 7 deletions
diff --git a/units/machine.slice b/units/machine.slice
index 6b1754b9dc..3d40dfd73b 100644
--- a/units/machine.slice
+++ b/units/machine.slice
@@ -8,6 +8,4 @@
[Unit]
Description=Virtual Machine and Container Slice
Documentation=man:systemd.special(7)
-
-[Install]
-WantedBy=slices.target
+Before=slices.target
diff --git a/units/system.slice b/units/system.slice
index f78ecb4388..8281fe58f6 100644
--- a/units/system.slice
+++ b/units/system.slice
@@ -9,3 +9,4 @@
Description=System Slice
Documentation=man:systemd.special(7)
DefaultDependencies=no
+Before=slices.target
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index cf3c430b7f..ec05e670f3 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -9,7 +9,8 @@
Description=Login Service
Documentation=man:systemd-logind.service(8) man:logind.conf(5)
Documentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat
-After=nss-user-lookup.target
+Wants=user.slice machine.slice
+After=nss-user-lookup.target user.slice machine.slice
[Service]
ExecStart=@rootlibexecdir@/systemd-logind
diff --git a/units/user.slice b/units/user.slice
index dfaa44bcac..9fa6284c12 100644
--- a/units/user.slice
+++ b/units/user.slice
@@ -8,6 +8,4 @@
[Unit]
Description=User and Session Slice
Documentation=man:systemd.special(7)
-
-[Install]
-WantedBy=slices.target
+Before=slices.target