summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
Diffstat (limited to 'units')
-rw-r--r--units/basic.target4
-rw-r--r--units/machine.slice13
-rw-r--r--units/slices.target12
-rw-r--r--units/system.slice11
-rw-r--r--units/user.slice13
5 files changed, 51 insertions, 2 deletions
diff --git a/units/basic.target b/units/basic.target
index 6b9cfe4c97..d7c68f4e2c 100644
--- a/units/basic.target
+++ b/units/basic.target
@@ -9,6 +9,6 @@
Description=Basic System
Documentation=man:systemd.special(7)
Requires=sysinit.target
-Wants=sockets.target timers.target paths.target
-After=sysinit.target sockets.target timers.target paths.target
+Wants=sockets.target timers.target paths.target slices.target
+After=sysinit.target sockets.target timers.target paths.target slices.target
RefuseManualStart=yes
diff --git a/units/machine.slice b/units/machine.slice
new file mode 100644
index 0000000000..6b1754b9dc
--- /dev/null
+++ b/units/machine.slice
@@ -0,0 +1,13 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Virtual Machine and Container Slice
+Documentation=man:systemd.special(7)
+
+[Install]
+WantedBy=slices.target
diff --git a/units/slices.target b/units/slices.target
new file mode 100644
index 0000000000..cbfdba0055
--- /dev/null
+++ b/units/slices.target
@@ -0,0 +1,12 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Slices
+Documentation=man:systemd.special(7)
+Wants=system.slice
+After=system.slice
diff --git a/units/system.slice b/units/system.slice
new file mode 100644
index 0000000000..f78ecb4388
--- /dev/null
+++ b/units/system.slice
@@ -0,0 +1,11 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=System Slice
+Documentation=man:systemd.special(7)
+DefaultDependencies=no
diff --git a/units/user.slice b/units/user.slice
new file mode 100644
index 0000000000..dfaa44bcac
--- /dev/null
+++ b/units/user.slice
@@ -0,0 +1,13 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=User and Session Slice
+Documentation=man:systemd.special(7)
+
+[Install]
+WantedBy=slices.target