1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
7 This file is part of systemd.
9 Copyright 2010 Lennart Poettering
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 <refentry id="logind.conf" conditional='ENABLE_LOGIND'>
27 <title>logind.conf</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>logind.conf</refentrytitle>
42 <manvolnum>5</manvolnum>
46 <refname>logind.conf</refname>
47 <refpurpose>Login manager configuration file</refpurpose>
51 <para><filename>/etc/systemd/logind.conf</filename></para>
55 <title>Description</title>
57 <para>This file configures various parameters of the systemd login manager, <citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
62 <title>Options</title>
64 <para>All options are configured in the
65 <literal>[Login]</literal> section:</para>
70 <term><varname>NAutoVTs=</varname></term>
72 <listitem><para>Takes a positive
73 integer. Configures how many virtual
74 terminals (VTs) to allocate by default
75 that, when switched to and are
77 <literal>autovt</literal> services are
78 automatically spawned on. These
79 services are instantiated from the
81 <filename>autovt@.service</filename>
82 for the respective VT TTY name,
83 e.g. <filename>autovt@tty4.service</filename>. By
85 <filename>autovt@.service</filename>
87 <filename>getty@.service</filename>,
88 i.e. login prompts are started
89 dynamically as the user switches to
90 unused virtual terminals. Hence, this
91 parameter controls how many login
92 <literal>gettys</literal> are
93 available on the VTs. If a VT is
94 already used by some other subsystem
95 (for example a graphical login), this
96 kind of activation will not be
97 attempted. Note that the VT configured
98 in <varname>ReserveVT=</varname> is
99 always subject to this kind of
100 activation, even if it is not one of
101 VTs configured with the
102 <varname>NAutoVTs=</varname>
103 directive. Defaults to 6. When set to
104 0, automatic spawning of
105 <literal>autovt</literal> services is
106 disabled.</para></listitem>
110 <term><varname>ReserveVT=</varname></term>
112 <listitem><para>Takes a positive
113 integer. Configures the number of one
114 virtual terminal that shall
115 unconditionally be reserved for
116 <filename>autovt@.service</filename>
117 activation (see above). The VT
118 selected with this option will be
119 marked busy unconditionally, so that no
120 other subsystem will allocate it. This
121 functionality is useful to ensure that
122 regardless of how many VTs are allocated
123 by other subsystems, one login
124 <literal>getty</literal> is always
125 available. Defaults to 6 (in other
126 words, there will always be a
127 <literal>getty</literal> available on
128 Alt-F6.). When set to 0, VT
130 disabled.</para></listitem>
134 <term><varname>KillUserProcesses=</varname></term>
136 <listitem><para>Takes a boolean
137 argument. Configures whether the
138 processes of a user should be killed
139 when she or he completely logs out (i.e. after
140 her/his last session ended). Defaults to
141 <literal>no</literal>.</para>
143 <para>Note that setting
144 <varname>KillUserProcesses=1</varname>
145 will break tools like
146 <citerefentry><refentrytitle>screen</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para></listitem>
150 <term><varname>KillOnlyUsers=</varname></term>
151 <term><varname>KillExcludeUsers=</varname></term>
153 <listitem><para>These settings take
154 space-separated lists of usernames
155 that influence the effect of
156 <varname>KillUserProcesses=</varname>. If
157 not empty, only processes of users
159 <varname>KillOnlyUsers=</varname> will
160 be killed when they log out
161 entirely. Processes of users listed in
162 <varname>KillExcludeUsers=</varname>
163 are excluded from being
164 killed. <varname>KillExcludeUsers=</varname>
165 defaults to <literal>root</literal>
166 and takes precedence over
167 <varname>KillOnlyUsers=</varname>,
168 which defaults to the empty list.</para></listitem>
172 <term><varname>IdleAction=</varname></term>
174 <listitem><para>Configures the action
175 to take when the system is idle. Takes
176 one of <literal>ignore</literal>,
177 <literal>poweroff</literal>,
178 <literal>reboot</literal>,
179 <literal>halt</literal>,
180 <literal>kexec</literal>,
181 <literal>suspend</literal>,
182 <literal>hibernate</literal>,
183 <literal>hybrid-sleep</literal>,
184 <literal>lock</literal>. Defaults to
185 <literal>ignore</literal>.</para>
187 <para>Note that this requires that
188 user sessions correctly report the
189 idle status to the system. The system
190 will execute the action after all
191 sessions report that they are idle,
192 no idle inhibitor lock is active,
193 and subsequently, the time configured
194 with <varname>IdleActionSec=</varname>
195 (see below) has expired.</para>
200 <term><varname>IdleActionSec=</varname></term>
202 <listitem><para>Configures the delay
203 after which the action configured in
204 <varname>IdleAction=</varname> (see
205 above) is taken after the system is
206 idle.</para></listitem>
210 <term><varname>InhibitDelayMaxSec=</varname></term>
212 <listitem><para>Specifies the maximum
213 time a system shutdown or sleep
214 request is delayed due to an inhibitor
215 lock of type <literal>delay</literal>
216 being active before the inhibitor is
217 ignored and the operation executes
219 5s.</para></listitem>
223 <term><varname>HandlePowerKey=</varname></term>
224 <term><varname>HandleSuspendKey=</varname></term>
225 <term><varname>HandleHibernateKey=</varname></term>
226 <term><varname>HandleLidSwitch=</varname></term>
228 <listitem><para>Controls whether
229 logind shall handle the system power
230 and sleep keys and the lid switch to
231 trigger actions such as system
232 power-off or suspend. Can be one of
233 <literal>ignore</literal>,
234 <literal>poweroff</literal>,
235 <literal>reboot</literal>,
236 <literal>halt</literal>,
237 <literal>kexec</literal>,
238 <literal>suspend</literal>,
239 <literal>hibernate</literal>,
240 <literal>hybrid-sleep</literal> and
241 <literal>lock</literal>. If
242 <literal>ignore</literal>, logind will
243 never handle these keys. If
244 <literal>lock</literal>, all running
245 sessions will be screen-locked; otherwise,
247 will be taken in the respective
248 event. Only input devices with the
249 <literal>power-switch</literal> udev
250 tag will be watched for key/lid switch
251 events. <varname>HandlePowerKey=</varname>
253 <literal>poweroff</literal>.
254 <varname>HandleSuspendKey=</varname>
256 <varname>HandleLidSwitch=</varname>
257 default to <literal>suspend</literal>.
258 <varname>HandleHibernateKey=</varname>
260 <literal>hibernate</literal>.</para></listitem>
264 <term><varname>PowerKeyIgnoreInhibited=</varname></term>
265 <term><varname>SuspendKeyIgnoreInhibited=</varname></term>
266 <term><varname>HibernateKeyIgnoreInhibited=</varname></term>
267 <term><varname>LidSwitchIgnoreInhibited=</varname></term>
269 <listitem><para>Controls whether
270 actions triggered by the power and
271 sleep keys and the lid switch are
272 subject to inhibitor locks. These
273 settings take boolean arguments. If
274 <literal>off</literal>, the inhibitor
275 locks taken by applications in order
276 to block the requested operation are
277 respected. If <literal>on</literal>,
278 the requested operation is executed in
280 case. <varname>PowerKeyIgnoreInhibited=</varname>,
281 <varname>SuspendKeyIgnoreInhibited=</varname>
283 <varname>HibernateKeyIgnoreInhibited=</varname>
284 default to <literal>off</literal>.
285 <varname>LidSwitchIgnoreInhibited=</varname>
287 <literal>yes</literal>. This means
288 that the lid switch does not respect
289 suspend blockers by default, but the
290 power and sleep keys do.
298 <title>See Also</title>
300 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
301 <citerefentry><refentrytitle>systemd-logind.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
302 <citerefentry><refentrytitle>loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
303 <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>