| 1 |
<?xml version='1.0'?> <!--*-nxml-*--> |
| 2 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 5 |
|
| 6 |
<refentry id="systemd-logind.service" conditional='ENABLE_LOGIND'> |
| 7 |
|
| 8 |
<refentryinfo> |
| 9 |
<title>systemd-logind.service</title> |
| 10 |
<productname>systemd</productname> |
| 11 |
</refentryinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>systemd-logind.service</refentrytitle> |
| 15 |
<manvolnum>8</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>systemd-logind.service</refname> |
| 20 |
<refname>systemd-logind</refname> |
| 21 |
<refpurpose>Login manager</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<para><filename>systemd-logind.service</filename></para> |
| 26 |
<para><filename>/usr/lib/systemd/systemd-logind</filename></para> |
| 27 |
</refsynopsisdiv> |
| 28 |
|
| 29 |
<refsect1> |
| 30 |
<title>Description</title> |
| 31 |
|
| 32 |
<para><command>systemd-logind</command> is a system service that |
| 33 |
manages user logins. It is responsible for:</para> |
| 34 |
|
| 35 |
<itemizedlist> |
| 36 |
<listitem><para>Keeping track of users and sessions, their processes and their idle state. This is implemented by |
| 37 |
allocating a systemd slice unit for each user below <filename>user.slice</filename>, and a scope unit below it |
| 38 |
for each concurrent session of a user. Also, a per-user service manager is started as system service instance of |
| 39 |
<filename>[email protected]</filename> for each logged in user.</para></listitem> |
| 40 |
|
| 41 |
<listitem><para>Generating and managing session IDs. If auditing is available and an audit session ID is already set for |
| 42 |
a session, then this ID is reused as the session ID. Otherwise, an independent session counter is |
| 43 |
used.</para></listitem> |
| 44 |
|
| 45 |
<listitem><para>Providing <ulink |
| 46 |
url="https://www.freedesktop.org/wiki/Software/polkit">polkit</ulink>-based access for users for |
| 47 |
operations such as system shutdown or sleep</para> |
| 48 |
</listitem> |
| 49 |
|
| 50 |
<listitem><para>Implementing a shutdown/sleep inhibition logic for applications</para></listitem> |
| 51 |
|
| 52 |
<listitem><para>Handling of power/sleep hardware keys</para></listitem> |
| 53 |
|
| 54 |
<listitem><para>Multi-seat management</para></listitem> |
| 55 |
|
| 56 |
<listitem><para>Session switch management</para></listitem> |
| 57 |
|
| 58 |
<listitem><para>Device access management for users</para></listitem> |
| 59 |
|
| 60 |
<listitem><para>Automatic spawning of text logins (gettys) on virtual console activation and user |
| 61 |
runtime directory management</para></listitem> |
| 62 |
|
| 63 |
<listitem><para>Scheduled shutdown</para></listitem> |
| 64 |
|
| 65 |
<listitem><para>Sending "wall" messages</para></listitem> |
| 66 |
</itemizedlist> |
| 67 |
|
| 68 |
<para>User sessions are registered with logind via the |
| 69 |
<citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
| 70 |
PAM module.</para> |
| 71 |
|
| 72 |
<para>See |
| 73 |
<citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 74 |
for information about the configuration of this service.</para> |
| 75 |
|
| 76 |
<para>See |
| 77 |
<citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry> |
| 78 |
for information about the basic concepts of logind |
| 79 |
such as users, sessions and seats.</para> |
| 80 |
|
| 81 |
<para>See |
| 82 |
<citerefentry><refentrytitle>org.freedesktop.login1</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 83 |
and |
| 84 |
<citerefentry><refentrytitle>org.freedesktop.LogControl1</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 85 |
for information about the D-Bus APIs <filename>systemd-logind</filename> provides.</para> |
| 86 |
|
| 87 |
<para>In addition to the D-Bus interface, <filename>systemd-logind</filename> also provides a Varlink |
| 88 |
interface <constant>io.systemd.Shutdown</constant> for shutting down or rebooting the system. It |
| 89 |
supports <function>PowerOff</function>, <function>Reboot</function>, <function>Halt</function>, |
| 90 |
<function>KExec</function>, and <function>SoftReboot</function> methods. Each method accepts an |
| 91 |
optional <varname>skipInhibitors</varname> boolean parameter to bypass active block inhibitors |
| 92 |
(matching the <constant>SD_LOGIND_SKIP_INHIBITORS</constant> flag of the D-Bus interface). The |
| 93 |
interface can be queried with |
| 94 |
<command>varlinkctl introspect /run/systemd/io.systemd.Login io.systemd.Shutdown</command>.</para> |
| 95 |
|
| 96 |
<para>For more information see |
| 97 |
<ulink url="https://systemd.io/INHIBITOR_LOCKS">Inhibitor Locks</ulink>.</para> |
| 98 |
|
| 99 |
<para>If you are interested in writing a display manager that makes use of logind, please have look at |
| 100 |
<ulink url="https://systemd.io/WRITING_DISPLAY_MANAGERS">Writing Display |
| 101 |
Managers</ulink>. |
| 102 |
If you are interested in writing a desktop environment that makes use of logind, please have look at |
| 103 |
<ulink url="https://systemd.io/WRITING_DESKTOP_ENVIRONMENTS">Writing |
| 104 |
Desktop Environments</ulink>.</para> |
| 105 |
</refsect1> |
| 106 |
|
| 107 |
<refsect1> |
| 108 |
<title>Signal</title> |
| 109 |
<variablelist> |
| 110 |
<varlistentry> |
| 111 |
<term><constant>SIGHUP</constant></term> |
| 112 |
<listitem><para>Reloads the service configuration file.</para></listitem> |
| 113 |
</varlistentry> |
| 114 |
</variablelist> |
| 115 |
</refsect1> |
| 116 |
|
| 117 |
<refsect1> |
| 118 |
<title>See Also</title> |
| 119 |
<para><simplelist type="inline"> |
| 120 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 121 |
<member><citerefentry><refentrytitle>systemd-user-sessions.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 122 |
<member><citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 123 |
<member><citerefentry><refentrytitle>logind.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry></member> |
| 124 |
<member><citerefentry><refentrytitle>pam_systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 125 |
<member><citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry></member> |
| 126 |
<member><citerefentry><refentrytitle>org.freedesktop.login1</refentrytitle><manvolnum>5</manvolnum></citerefentry></member> |
| 127 |
</simplelist></para> |
| 128 |
</refsect1> |
| 129 |
|
| 130 |
</refentry> |