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