]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Add special Desktop Environment user related units
authorBenjamin Berg <bberg@redhat.com>
Tue, 28 Jul 2020 17:10:31 +0000 (19:10 +0200)
committerBenjamin Berg <bberg@redhat.com>
Fri, 23 Oct 2020 07:58:41 +0000 (09:58 +0200)
This adds app.slice, session.slice and background.slice.

units/user/app.slice [new file with mode: 0644]
units/user/background.slice [new file with mode: 0644]
units/user/meson.build
units/user/session.slice [new file with mode: 0644]
units/user/systemd-exit.service

diff --git a/units/user/app.slice b/units/user/app.slice
new file mode 100644 (file)
index 0000000..065ea77
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  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 Application Slice
+Documentation=man:systemd.special(7)
diff --git a/units/user/background.slice b/units/user/background.slice
new file mode 100644 (file)
index 0000000..03c89b6
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  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 Background Tasks Slice
+Documentation=man:systemd.special(7)
index 33732e7d59bac2ad597426ee5afd1772adcd3466..744c1e7c5e9d6eff550d738b74322328475f7d52 100644 (file)
@@ -1,6 +1,8 @@
 # SPDX-License-Identifier: LGPL-2.1+
 
 units = [
+        'app.slice',
+        'background.slice',
         'basic.target',
         'bluetooth.target',
         'default.target',
@@ -9,6 +11,7 @@ units = [
         'graphical-session.target',
         'paths.target',
         'printer.target',
+        'session.slice',
         'shutdown.target',
         'smartcard.target',
         'sockets.target',
diff --git a/units/user/session.slice b/units/user/session.slice
new file mode 100644 (file)
index 0000000..e0b38c5
--- /dev/null
@@ -0,0 +1,12 @@
+#  SPDX-License-Identifier: LGPL-2.1+
+#
+#  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 Core Session Slice
+Documentation=man:systemd.special(7)
index 1d3b61e3ab1e74d7d42dbc73f1db1c2dc1b4d949..87f906c3b72daca8636793e6a5fb3d0782dd6be5 100644 (file)
@@ -14,3 +14,7 @@ DefaultDependencies=no
 Requires=shutdown.target
 After=shutdown.target
 SuccessAction=exit-force
+
+[Service]
+# Place into the root slice to not keep another slice unit alive
+Slice=-.slice