1<?xml version="1.0"?>
2<!--*-nxml-*-->
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6<refentry id="systemd-user-sessions.service" conditional='HAVE_PAM'>
7
8  <refentryinfo>
9    <title>systemd-user-sessions.service</title>
10    <productname>systemd</productname>
11  </refentryinfo>
12
13  <refmeta>
14    <refentrytitle>systemd-user-sessions.service</refentrytitle>
15    <manvolnum>8</manvolnum>
16  </refmeta>
17
18  <refnamediv>
19    <refname>systemd-user-sessions.service</refname>
20    <refname>systemd-user-sessions</refname>
21    <refpurpose>Permit user logins after boot, prohibit user logins at shutdown</refpurpose>
22  </refnamediv>
23
24  <refsynopsisdiv>
25    <para><filename>systemd-user-sessions.service</filename></para>
26    <para><filename>/usr/lib/systemd/systemd-user-sessions</filename></para>
27  </refsynopsisdiv>
28
29  <refsect1>
30    <title>Description</title>
31
32    <para><filename>systemd-user-sessions.service</filename> is a
33    service that controls user logins through
34    <citerefentry project='man-pages'><refentrytitle>pam_nologin</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
35    After basic system initialization is complete, it removes
36    <filename>/run/nologin</filename>, thus permitting logins. Before
37    system shutdown, it creates <filename>/run/nologin</filename>, thus
38    prohibiting further logins.</para>
39  </refsect1>
40
41  <refsect1>
42    <title>See Also</title>
43    <para>
44      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
45      <citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
46      <citerefentry project='man-pages'><refentrytitle>pam_nologin</refentrytitle><manvolnum>8</manvolnum></citerefentry>
47    </para>
48  </refsect1>
49
50</refentry>
51