]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-logind.service.xml
man: use https:// in URLs
[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 This file is part of systemd.
7
8 Copyright 2010 Lennart Poettering
9
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 -->
23
24 <refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'>
25
26 <refentryinfo>
27 <title>systemd-logind.service</title>
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>systemd-logind.service</refentrytitle>
42 <manvolnum>8</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>systemd-logind.service</refname>
47 <refname>systemd-logind</refname>
48 <refpurpose>Login manager</refpurpose>
49 </refnamediv>
50
51 <refsynopsisdiv>
52 <para><filename>systemd-logind.service</filename></para>
53 <para><filename>/usr/lib/systemd/systemd-logind</filename></para>
54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para><command>systemd-logind</command> is a system service that
60 manages user logins. It is responsible for:</para>
61
62 <itemizedlist>
63 <listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by
64 allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it
65 for each concurrent session of a user. Also, a per-user service manager is started as system service instance of
66 <filename>user@.service</filename> for each user logged in.</para></listitem>
67
68 <listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is set for
69 a session already, the session ID is initialized from it. Otherwise, an independent session counter is
70 used.</para></listitem>
71
72 <listitem><para>Providing PolicyKit-based access for users to
73 operations such as system shutdown or sleep</para></listitem>
74
75 <listitem><para>Implementing a shutdown/sleep inhibition logic
76 for applications</para></listitem>
77
78 <listitem><para>Handling of power/sleep hardware
79 keys</para></listitem>
80
81 <listitem><para>Multi-seat management</para></listitem>
82
83 <listitem><para>Session switch management</para></listitem>
84
85 <listitem><para>Device access management for
86 users</para></listitem>
87
88 <listitem><para>Automatic spawning of text logins (gettys) on
89 virtual console activation and user runtime directory
90 management</para></listitem>
91 </itemizedlist>
92
93 <para>User sessions are registered with logind via the
94 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
95 PAM module.</para>
96
97 <para>See
98 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
99 for information about the configuration of this service.</para>
100
101 <para>See <ulink
102 url="https://www.freedesktop.org/wiki/Software/systemd/multiseat">Multi-Seat
103 on Linux</ulink> for an introduction into basic concepts of logind
104 such as users, sessions and seats.</para>
105
106 <para>See the <ulink
107 url="https://www.freedesktop.org/wiki/Software/systemd/logind">
108 logind D-Bus API Documentation</ulink> for information about the
109 APIs <filename>systemd-logind</filename> provides.</para>
110
111 <para>For more information on the inhibition logic see the <ulink
112 url="https://www.freedesktop.org/wiki/Software/systemd/inhibit">Inhibitor
113 Lock Developer Documentation</ulink>.</para>
114 </refsect1>
115
116 <refsect1>
117 <title>See Also</title>
118 <para>
119 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
120 <citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
121 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
122 <citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
123 <citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
124 </para>
125 </refsect1>
126
127 </refentry>