]> git.ipfire.org Git - thirdparty/systemd.git/blob - 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
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4
5 <!--
6 SPDX-License-Identifier: LGPL-2.1+
7
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
26 <refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'>
27
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>
55 <para><filename>/usr/lib/systemd/systemd-logind</filename></para>
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>
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
68 <filename>user@.service</filename> for each logged in user.</para></listitem>
69
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
72 used.</para></listitem>
73
74 <listitem><para>Providing PolicyKit-based access for users for
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
95 <para>User sessions are registered with logind via the
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
103 <para>See
104 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
105 for information about the basic concepts of logind
106 such as users, sessions and seats.</para>
107
108 <para>See the <ulink
109 url="https://www.freedesktop.org/wiki/Software/systemd/logind">
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
114 url="https://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
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>
126 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
127 </para>
128 </refsect1>
129
130 </refentry>