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