units: Add special Desktop Environment user related units
This adds app.slice, session.slice and background.slice.
This commit is contained in:
parent
943142a97d
commit
a3081a7a89
|
@ -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)
|
|
@ -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)
|
|
@ -1,6 +1,8 @@
|
||||||
# SPDX-License-Identifier: LGPL-2.1+
|
# SPDX-License-Identifier: LGPL-2.1+
|
||||||
|
|
||||||
units = [
|
units = [
|
||||||
|
'app.slice',
|
||||||
|
'background.slice',
|
||||||
'basic.target',
|
'basic.target',
|
||||||
'bluetooth.target',
|
'bluetooth.target',
|
||||||
'default.target',
|
'default.target',
|
||||||
|
@ -9,6 +11,7 @@ units = [
|
||||||
'graphical-session.target',
|
'graphical-session.target',
|
||||||
'paths.target',
|
'paths.target',
|
||||||
'printer.target',
|
'printer.target',
|
||||||
|
'session.slice',
|
||||||
'shutdown.target',
|
'shutdown.target',
|
||||||
'smartcard.target',
|
'smartcard.target',
|
||||||
'sockets.target',
|
'sockets.target',
|
||||||
|
|
|
@ -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)
|
|
@ -14,3 +14,7 @@ DefaultDependencies=no
|
||||||
Requires=shutdown.target
|
Requires=shutdown.target
|
||||||
After=shutdown.target
|
After=shutdown.target
|
||||||
SuccessAction=exit-force
|
SuccessAction=exit-force
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# Place into the root slice to not keep another slice unit alive
|
||||||
|
Slice=-.slice
|
||||||
|
|
Loading…
Reference in New Issue