]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/logind.conf.xml
Merge pull request #3986 from whot/wip/click-wheel-angle-horiz
[thirdparty/systemd.git] / man / logind.conf.xml
CommitLineData
90558f31 1<?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*-->
8fa365e5 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
8fa365e5
LP
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
5430f7f2
LP
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
8fa365e5
LP
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
5430f7f2 18 Lesser General Public License for more details.
8fa365e5 19
5430f7f2 20 You should have received a copy of the GNU Lesser General Public License
8fa365e5
LP
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22-->
23
d3fae78f 24<refentry id="logind.conf" conditional='ENABLE_LOGIND'
798d3a52
ZJS
25 xmlns:xi="http://www.w3.org/2001/XInclude">
26 <refentryinfo>
27 <title>logind.conf</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>logind.conf</refentrytitle>
42 <manvolnum>5</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>logind.conf</refname>
47 <refname>logind.conf.d</refname>
48 <refpurpose>Login manager configuration files</refpurpose>
49 </refnamediv>
50
51 <refsynopsisdiv>
12b42c76
TG
52 <para><filename>/etc/systemd/logind.conf</filename></para>
53 <para><filename>/etc/systemd/logind.conf.d/*.conf</filename></para>
798d3a52 54 <para><filename>/run/systemd/logind.conf.d/*.conf</filename></para>
12b42c76 55 <para><filename>/usr/lib/systemd/logind.conf.d/*.conf</filename></para>
798d3a52
ZJS
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60
e93549ef
ZJS
61 <para>These files configure various parameters of the systemd
62 login manager,
63 <citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
64 </para>
798d3a52
ZJS
65 </refsect1>
66
e93549ef 67 <xi:include href="standard-conf.xml" xpointer="main-conf" />
798d3a52
ZJS
68
69 <refsect1>
70 <title>Options</title>
71
72 <para>All options are configured in the
73 <literal>[Login]</literal> section:</para>
74
75 <variablelist>
76
77 <varlistentry>
78 <term><varname>NAutoVTs=</varname></term>
79
80 <listitem><para>Takes a positive integer. Configures how many
81 virtual terminals (VTs) to allocate by default that, when
82 switched to and are previously unused,
83 <literal>autovt</literal> services are automatically spawned
84 on. These services are instantiated from the template unit
85 <filename>autovt@.service</filename> for the respective VT TTY
86 name, for example, <filename>autovt@tty4.service</filename>.
87 By default, <filename>autovt@.service</filename> is linked to
88 <filename>getty@.service</filename>. In other words, login
89 prompts are started dynamically as the user switches to unused
90 virtual terminals. Hence, this parameter controls how many
91 login <literal>gettys</literal> are available on the VTs. If a
92 VT is already used by some other subsystem (for example, a
93 graphical login), this kind of activation will not be
94 attempted. Note that the VT configured in
95 <varname>ReserveVT=</varname> is always subject to this kind
96 of activation, even if it is not one of the VTs configured
97 with the <varname>NAutoVTs=</varname> directive. Defaults to
98 6. When set to 0, automatic spawning of
99 <literal>autovt</literal> services is
100 disabled.</para></listitem>
101 </varlistentry>
102
103 <varlistentry>
104 <term><varname>ReserveVT=</varname></term>
105
106 <listitem><para>Takes a positive integer. Identifies one
107 virtual terminal that shall unconditionally be reserved for
108 <filename>autovt@.service</filename> activation (see above).
109 The VT selected with this option will be marked busy
110 unconditionally, so that no other subsystem will allocate it.
111 This functionality is useful to ensure that, regardless of how
112 many VTs are allocated by other subsystems, one login
113 <literal>getty</literal> is always available. Defaults to 6
114 (in other words, there will always be a
115 <literal>getty</literal> available on Alt-F6.). When set to 0,
116 VT reservation is disabled.</para></listitem>
117 </varlistentry>
118
119 <varlistentry>
120 <term><varname>KillUserProcesses=</varname></term>
121
65eb37f8
ZJS
122 <listitem><para>Takes a boolean argument. Configures whether the processes of a
123 user should be killed when the user logs out. If true, the scope unit
124 corresponding to the session and all processes inside that scope will be
4f25723c 125 terminated. If false, the scope is "abandoned", see
65eb37f8 126 <citerefentry><refentrytitle>systemd.scope</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
921f831d
ZJS
127 and processes are not killed. Defaults to <literal>yes</literal>,
128 but see the options <varname>KillOnlyUsers=</varname> and
129 <varname>KillExcludeUsers=</varname> below.</para>
65eb37f8
ZJS
130
131 <para>In addition to session processes, user process may run under the user
132 manager unit <filename>user@.service</filename>. Depending on the linger
133 settings, this may allow users to run processes independent of their login
134 sessions. See the description of <command>enable-linger</command> in
135 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
136 </para>
137
138 <para>Note that setting <varname>KillUserProcesses=yes</varname>
798d3a52 139 will break tools like
65eb37f8
ZJS
140 <citerefentry project='die-net'><refentrytitle>screen</refentrytitle><manvolnum>1</manvolnum></citerefentry>
141 and
142 <citerefentry project='die-net'><refentrytitle>tmux</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
143 unless they are moved out of the session scope. See example in
144 <citerefentry><refentrytitle>systemd-run</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
145 </para></listitem>
798d3a52
ZJS
146 </varlistentry>
147
148 <varlistentry>
149 <term><varname>KillOnlyUsers=</varname></term>
150 <term><varname>KillExcludeUsers=</varname></term>
151
921f831d
ZJS
152 <listitem><para>These settings take space-separated lists of usernames that override
153 the <varname>KillUserProcesses=</varname> setting. A user name may be added to
154 <varname>KillExcludeUsers=</varname> to exclude the processes in the session scopes of
155 that user from being killed even if <varname>KillUserProcesses=yes</varname> is set. If
156 <varname>KillExcludeUsers=</varname> is not set, the <literal>root</literal> user is
157 excluded by default. <varname>KillExcludeUsers=</varname> may be set to an empty value
158 to override this default. If a user is not excluded, <varname>KillOnlyUsers=</varname>
159 is checked next. If this setting is specified, only the session scopes of those users
160 will be killed. Otherwise, users are subject to the
161 <varname>KillUserProcesses=yes</varname> setting.</para></listitem>
798d3a52
ZJS
162 </varlistentry>
163
164 <varlistentry>
165 <term><varname>IdleAction=</varname></term>
166
167 <listitem><para>Configures the action to take when the system
168 is idle. Takes one of
169 <literal>ignore</literal>,
170 <literal>poweroff</literal>,
171 <literal>reboot</literal>,
172 <literal>halt</literal>,
173 <literal>kexec</literal>,
174 <literal>suspend</literal>,
175 <literal>hibernate</literal>,
176 <literal>hybrid-sleep</literal>, and
177 <literal>lock</literal>.
178 Defaults to <literal>ignore</literal>.</para>
179
180 <para>Note that this requires that user sessions correctly
181 report the idle status to the system. The system will execute
182 the action after all sessions report that they are idle, no
183 idle inhibitor lock is active, and subsequently, the time
184 configured with <varname>IdleActionSec=</varname> (see below)
185 has expired.</para>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry>
190 <term><varname>IdleActionSec=</varname></term>
191
192 <listitem><para>Configures the delay after which the action
193 configured in <varname>IdleAction=</varname> (see above) is
194 taken after the system is idle.</para></listitem>
195 </varlistentry>
196
197 <varlistentry>
198 <term><varname>InhibitDelayMaxSec=</varname></term>
199
200 <listitem><para>Specifies the maximum time a system shutdown
201 or sleep request is delayed due to an inhibitor lock of type
202 <literal>delay</literal> being active before the inhibitor is
203 ignored and the operation executes anyway. Defaults to
204 5.</para></listitem>
205 </varlistentry>
206
207 <varlistentry>
208 <term><varname>HandlePowerKey=</varname></term>
209 <term><varname>HandleSuspendKey=</varname></term>
210 <term><varname>HandleHibernateKey=</varname></term>
211 <term><varname>HandleLidSwitch=</varname></term>
212 <term><varname>HandleLidSwitchDocked=</varname></term>
213
214 <listitem><para>Controls whether logind shall handle the
215 system power and sleep keys and the lid switch to trigger
216 actions such as system power-off or suspend. Can be one of
217 <literal>ignore</literal>,
218 <literal>poweroff</literal>,
219 <literal>reboot</literal>,
220 <literal>halt</literal>,
221 <literal>kexec</literal>,
222 <literal>suspend</literal>,
223 <literal>hibernate</literal>,
224 <literal>hybrid-sleep</literal>, and
225 <literal>lock</literal>.
226 If <literal>ignore</literal>, logind will never handle these
227 keys. If <literal>lock</literal>, all running sessions will be
228 screen-locked; otherwise, the specified action will be taken
229 in the respective event. Only input devices with the
230 <literal>power-switch</literal> udev tag will be watched for
231 key/lid switch events. <varname>HandlePowerKey=</varname>
232 defaults to <literal>poweroff</literal>.
233 <varname>HandleSuspendKey=</varname> and
234 <varname>HandleLidSwitch=</varname> default to
235 <literal>suspend</literal>.
236 <varname>HandleLidSwitchDocked=</varname> defaults to
237 <literal>ignore</literal>.
238 <varname>HandleHibernateKey=</varname> defaults to
239 <literal>hibernate</literal>. If the system is inserted in a
240 docking station, or if more than one display is connected, the
241 action specified by <varname>HandleLidSwitchDocked=</varname>
242 occurs; otherwise the <varname>HandleLidSwitch=</varname>
243 action occurs.</para></listitem>
244 </varlistentry>
245
246 <varlistentry>
247 <term><varname>PowerKeyIgnoreInhibited=</varname></term>
248 <term><varname>SuspendKeyIgnoreInhibited=</varname></term>
249 <term><varname>HibernateKeyIgnoreInhibited=</varname></term>
250 <term><varname>LidSwitchIgnoreInhibited=</varname></term>
251
252 <listitem><para>Controls whether actions triggered by the
253 power and sleep keys and the lid switch are subject to
254 inhibitor locks. These settings take boolean arguments. If
255 <literal>no</literal>, the inhibitor locks taken by
256 applications in order to block the requested operation are
257 respected. If <literal>yes</literal>, the requested operation
258 is executed in any case.
259 <varname>PowerKeyIgnoreInhibited=</varname>,
260 <varname>SuspendKeyIgnoreInhibited=</varname> and
261 <varname>HibernateKeyIgnoreInhibited=</varname> default to
262 <literal>no</literal>.
263 <varname>LidSwitchIgnoreInhibited=</varname> defaults to
264 <literal>yes</literal>. This means that the lid switch does
265 not respect suspend blockers by default, but the power and
266 sleep keys do. </para></listitem>
267 </varlistentry>
268
9d10cbee
DH
269 <varlistentry>
270 <term><varname>HoldoffTimeoutSec=</varname></term>
271
272 <listitem><para>Specifies the timeout after system startup or
273 system resume in which systemd will hold off on reacting to
a8eaaee7
JE
274 lid events. This is required for the system to properly
275 detect any hotplugged devices so systemd can ignore lid events
9d10cbee
DH
276 if external monitors, or docks, are connected. If set to 0,
277 systemd will always react immediately, possibly before the
278 kernel fully probed all hotplugged devices. This is safe, as
279 long as you do not care for systemd to account for devices
280 that have been plugged or unplugged while the system was off.
281 Defaults to 30s.</para></listitem>
282 </varlistentry>
283
798d3a52
ZJS
284 <varlistentry>
285 <term><varname>RuntimeDirectorySize=</varname></term>
286
287 <listitem><para>Sets the size limit on the
288 <varname>$XDG_RUNTIME_DIR</varname> runtime directory for each
289 user who logs in. Takes a size in bytes, optionally suffixed
290 with the usual K, G, M, and T suffixes, to the base 1024
291 (IEC). Alternatively, a numerical percentage suffixed by
292 <literal>%</literal> may be specified, which sets the size
293 limit relative to the amount of physical RAM. Defaults to 10%.
294 Note that this size is a safety limit only. As each runtime
295 directory is a tmpfs file system, it will only consume as much
90558f31
LP
296 memory as is needed.</para></listitem>
297 </varlistentry>
298
c5a11ae2
LP
299 <varlistentry>
300 <term><varname>InhibitorsMax=</varname></term>
301
302 <listitem><para>Controls the maximum number of concurrent inhibitors to permit. Defaults to 8192
303 (8K).</para></listitem>
304 </varlistentry>
305
183e0738
LP
306 <varlistentry>
307 <term><varname>SessionsMax=</varname></term>
308
309 <listitem><para>Controls the maximum number of concurrent user sessions to manage. Defaults to 8192
310 (8K). Depending on how the <filename>pam_systemd.so</filename> module is included in the PAM stack
311 configuration, further login sessions will either be refused, or permitted but not tracked by
312 <filename>systemd-logind</filename>.</para></listitem>
313 </varlistentry>
314
90558f31
LP
315 <varlistentry>
316 <term><varname>UserTasksMax=</varname></term>
317
c06eec15
LP
318 <listitem><para>Sets the maximum number of OS tasks each user may run concurrently. This controls the
319 <varname>TasksMax=</varname> setting of the per-user slice unit, see
90558f31 320 <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
c06eec15
LP
321 for details. Defaults to 33%, which equals 10813 with the kernel's defaults on the host, but might be smaller
322 in OS containers.</para></listitem>
798d3a52
ZJS
323 </varlistentry>
324
325 <varlistentry>
326 <term><varname>RemoveIPC=</varname></term>
327
f59d94bc
LP
328 <listitem><para>Controls whether System V and POSIX IPC objects belonging to the user shall be removed when the
329 user fully logs out. Takes a boolean argument. If enabled, the user may not consume IPC resources after the
330 last of the user's sessions terminated. This covers System V semaphores, shared memory and message queues, as
331 well as POSIX shared memory and message queues. Note that IPC objects of the root user and other system users
332 are excluded from the effect of this setting. Defaults to <literal>yes</literal>.</para></listitem>
798d3a52
ZJS
333 </varlistentry>
334
335 </variablelist>
336 </refsect1>
337
338 <refsect1>
339 <title>See Also</title>
340 <para>
341 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
342 <citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
343 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
344 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
345 </para>
346 </refsect1>
8fa365e5
LP
347
348</refentry>