]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-logind.service.xml
Fix SPDX license tags
[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
9 <refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'>
10
11 <refentryinfo>
12 <title>systemd-logind.service</title>
13 <productname>systemd</productname>
14
15 <authorgroup>
16 <author>
17 <contrib>Developer</contrib>
18 <firstname>Lennart</firstname>
19 <surname>Poettering</surname>
20 <email>lennart@poettering.net</email>
21 </author>
22 </authorgroup>
23 </refentryinfo>
24
25 <refmeta>
26 <refentrytitle>systemd-logind.service</refentrytitle>
27 <manvolnum>8</manvolnum>
28 </refmeta>
29
30 <refnamediv>
31 <refname>systemd-logind.service</refname>
32 <refname>systemd-logind</refname>
33 <refpurpose>Login manager</refpurpose>
34 </refnamediv>
35
36 <refsynopsisdiv>
37 <para><filename>systemd-logind.service</filename></para>
38 <para><filename>/usr/lib/systemd/systemd-logind</filename></para>
39 </refsynopsisdiv>
40
41 <refsect1>
42 <title>Description</title>
43
44 <para><command>systemd-logind</command> is a system service that
45 manages user logins. It is responsible for:</para>
46
47 <itemizedlist>
48 <listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by
49 allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it
50 for each concurrent session of a user. Also, a per-user service manager is started as system service instance of
51 <filename>user@.service</filename> for each logged in user.</para></listitem>
52
53 <listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is already set for
54 a session, then this ID is reused as the session ID. Otherwise, an independent session counter is
55 used.</para></listitem>
56
57 <listitem><para>Providing PolicyKit-based access for users for
58 operations such as system shutdown or sleep</para></listitem>
59
60 <listitem><para>Implementing a shutdown/sleep inhibition logic
61 for applications</para></listitem>
62
63 <listitem><para>Handling of power/sleep hardware
64 keys</para></listitem>
65
66 <listitem><para>Multi-seat management</para></listitem>
67
68 <listitem><para>Session switch management</para></listitem>
69
70 <listitem><para>Device access management for
71 users</para></listitem>
72
73 <listitem><para>Automatic spawning of text logins (gettys) on
74 virtual console activation and user runtime directory
75 management</para></listitem>
76 </itemizedlist>
77
78 <para>User sessions are registered with logind via the
79 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
80 PAM module.</para>
81
82 <para>See
83 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
84 for information about the configuration of this service.</para>
85
86 <para>See
87 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
88 for information about the basic concepts of logind
89 such as users, sessions and seats.</para>
90
91 <para>See the <ulink
92 url="https://www.freedesktop.org/wiki/Software/systemd/logind">
93 logind D-Bus API Documentation</ulink> for information about the
94 APIs <filename>systemd-logind</filename> provides.</para>
95
96 <para>For more information on the inhibition logic see the <ulink
97 url="https://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
98 Lock Developer Documentation</ulink>.</para>
99 </refsect1>
100
101 <refsect1>
102 <title>See Also</title>
103 <para>
104 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
105 <citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
106 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
107 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
108 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
109 <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
110 </para>
111 </refsect1>
112
113 </refentry>