2020-11-09 13:23:58 +09:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 17:35:03 +01:00
#
2011-06-30 02:18:01 +02:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 00:20:58 +02:00
# 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
2011-06-30 02:18:01 +02:00
# (at your option) any later version.
[Unit]
2014-01-08 17:20:45 -05:00
Description = User Manager for UID %i
2018-07-20 15:49:57 +02:00
Documentation = man:user@.service(5)
2018-07-13 17:43:27 +02:00
After = systemd-user-sessions.service user-runtime-dir@%i.service dbus.service
2017-12-09 19:30:17 +01:00
Requires = user-runtime-dir@%i.service
2018-09-12 15:10:58 +02:00
IgnoreOnIsolate = yes
2011-06-30 02:18:01 +02:00
[Service]
2014-01-06 08:00:16 +04:00
User = %i
Add pam configuration to allow user sessions to work out of the box
systemd-logind will start user@.service. user@.service unit uses
PAM with service name 'systemd-user' to perform account and session
managment tasks. Previously, the name was 'systemd-shared', it is
now changed to 'systemd-user'.
Most PAM installations use one common setup for different callers.
Based on a quick poll, distributions fall into two camps: those that
have system-auth (Redhat, Fedora, CentOS, Arch, Gentoo, Mageia,
Mandriva), and those that have common-auth (Debian, Ubuntu, OpenSUSE).
Distributions that have system-auth have just one configuration file
that contains auth, password, account, and session blocks, and
distributions that have common-auth also have common-session,
common-password, and common-account. It is thus impossible to use one
configuration file which would work for everybody. systemd-user now
refers to system-auth, because it seems that the approach with one
file is more popular and also easier, so let's follow that.
2013-09-11 14:31:14 -04:00
PAMName = systemd-user
2011-06-30 02:18:01 +02:00
Type = notify
2021-05-16 11:55:36 +02:00
ExecStart = {{ROOTLIBEXECDIR}}/systemd --user
2013-07-02 01:46:30 +02:00
Slice = user-%i.slice
2014-01-29 13:38:55 +01:00
KillMode = mixed
2018-03-01 10:58:03 +01:00
Delegate = pids memory
2015-11-22 23:00:43 +01:00
TasksMax = infinity
2016-10-20 17:45:27 +02:00
TimeoutStopSec = 120s
2019-03-13 18:47:28 +01:00
KeyringMode = inherit
2021-09-30 11:23:32 +02:00
OOMScoreAdjust = 100