]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-logind.service.xml
verify: use manager_load_startable_unit_or_warn() to load units for verification
[thirdparty/systemd.git] / man / systemd-logind.service.xml
CommitLineData
af3bccd6
LP
1<?xml version='1.0'?> <!--*-nxml-*-->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
af3bccd6
LP
4
5<!--
572eb058
ZJS
6 SPDX-License-Identifier: LGPL-2.1+
7
af3bccd6
LP
8 This file is part of systemd.
9
10 Copyright 2010 Lennart Poettering
11
12 systemd is free software; you can redistribute it and/or modify it
13 under the terms of the GNU Lesser General Public License as published by
14 the Free Software Foundation; either version 2.1 of the License, or
15 (at your option) any later version.
16
17 systemd is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
21
22 You should have received a copy of the GNU Lesser General Public License
23 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24-->
25
4fe52119 26<refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'>
af3bccd6 27
798d3a52
ZJS
28 <refentryinfo>
29 <title>systemd-logind.service</title>
30 <productname>systemd</productname>
31
32 <authorgroup>
33 <author>
34 <contrib>Developer</contrib>
35 <firstname>Lennart</firstname>
36 <surname>Poettering</surname>
37 <email>lennart@poettering.net</email>
38 </author>
39 </authorgroup>
40 </refentryinfo>
41
42 <refmeta>
43 <refentrytitle>systemd-logind.service</refentrytitle>
44 <manvolnum>8</manvolnum>
45 </refmeta>
46
47 <refnamediv>
48 <refname>systemd-logind.service</refname>
49 <refname>systemd-logind</refname>
50 <refpurpose>Login manager</refpurpose>
51 </refnamediv>
52
53 <refsynopsisdiv>
54 <para><filename>systemd-logind.service</filename></para>
12b42c76 55 <para><filename>/usr/lib/systemd/systemd-logind</filename></para>
798d3a52
ZJS
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60
61 <para><command>systemd-logind</command> is a system service that
62 manages user logins. It is responsible for:</para>
63
64 <itemizedlist>
66a5b902
LP
65 <listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by
66 allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it
67 for each concurrent session of a user. Also, a per-user service manager is started as system service instance of
0ae42c9b 68 <filename>user@.service</filename> for each logged in user.</para></listitem>
66a5b902 69
0ae42c9b
ZJS
70 <listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is already set for
71 a session, then this ID is reused as the session ID. Otherwise, an independent session counter is
66a5b902 72 used.</para></listitem>
798d3a52 73
0ae42c9b 74 <listitem><para>Providing PolicyKit-based access for users for
798d3a52
ZJS
75 operations such as system shutdown or sleep</para></listitem>
76
77 <listitem><para>Implementing a shutdown/sleep inhibition logic
78 for applications</para></listitem>
79
80 <listitem><para>Handling of power/sleep hardware
81 keys</para></listitem>
82
83 <listitem><para>Multi-seat management</para></listitem>
84
85 <listitem><para>Session switch management</para></listitem>
86
87 <listitem><para>Device access management for
88 users</para></listitem>
89
90 <listitem><para>Automatic spawning of text logins (gettys) on
91 virtual console activation and user runtime directory
92 management</para></listitem>
93 </itemizedlist>
94
05b2a8fd 95 <para>User sessions are registered with logind via the
798d3a52
ZJS
96 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
97 PAM module.</para>
98
99 <para>See
100 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
101 for information about the configuration of this service.</para>
102
3249bf31
YW
103 <para>See
104 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
105 for information about the basic concepts of logind
798d3a52
ZJS
106 such as users, sessions and seats.</para>
107
108 <para>See the <ulink
28a0ad81 109 url="https://www.freedesktop.org/wiki/Software/systemd/logind">
798d3a52
ZJS
110 logind D-Bus API Documentation</ulink> for information about the
111 APIs <filename>systemd-logind</filename> provides.</para>
112
113 <para>For more information on the inhibition logic see the <ulink
28a0ad81 114 url="https://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
798d3a52
ZJS
115 Lock Developer Documentation</ulink>.</para>
116 </refsect1>
117
118 <refsect1>
119 <title>See Also</title>
120 <para>
121 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
122 <citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
123 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
124 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
125 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
3249bf31 126 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
798d3a52
ZJS
127 </para>
128 </refsect1>
af3bccd6
LP
129
130</refentry>