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">
6 SPDX-License-Identifier: LGPL-2.1+
8 Copyright 2010 Lennart Poettering
11 <refentry id=
"systemd-logind.service" conditional='ENABLE_LOGIND'
>
14 <title>systemd-logind.service
</title>
15 <productname>systemd
</productname>
19 <contrib>Developer
</contrib>
20 <firstname>Lennart
</firstname>
21 <surname>Poettering
</surname>
22 <email>lennart@poettering.net
</email>
28 <refentrytitle>systemd-logind.service
</refentrytitle>
29 <manvolnum>8</manvolnum>
33 <refname>systemd-logind.service
</refname>
34 <refname>systemd-logind
</refname>
35 <refpurpose>Login manager
</refpurpose>
39 <para><filename>systemd-logind.service
</filename></para>
40 <para><filename>/usr/lib/systemd/systemd-logind
</filename></para>
44 <title>Description
</title>
46 <para><command>systemd-logind
</command> is a system service that
47 manages user logins. It is responsible for:
</para>
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>
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>
59 <listitem><para>Providing PolicyKit-based access for users for
60 operations such as system shutdown or sleep
</para></listitem>
62 <listitem><para>Implementing a shutdown/sleep inhibition logic
63 for applications
</para></listitem>
65 <listitem><para>Handling of power/sleep hardware
66 keys
</para></listitem>
68 <listitem><para>Multi-seat management
</para></listitem>
70 <listitem><para>Session switch management
</para></listitem>
72 <listitem><para>Device access management for
73 users
</para></listitem>
75 <listitem><para>Automatic spawning of text logins (gettys) on
76 virtual console activation and user runtime directory
77 management
</para></listitem>
80 <para>User sessions are registered with logind via the
81 <citerefentry><refentrytitle>pam_systemd
</refentrytitle><manvolnum>8</manvolnum></citerefentry>
85 <citerefentry><refentrytitle>logind.conf
</refentrytitle><manvolnum>5</manvolnum></citerefentry>
86 for information about the configuration of this service.
</para>
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>
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>
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>
104 <title>See Also
</title>
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>