File: logind.conf.html

package info (click to toggle)
systemd 215-17
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 49,568 kB
  • sloc: ansic: 192,789; xml: 39,586; sh: 13,002; makefile: 4,700; perl: 1,461; python: 1,355
file content (221 lines) | stat: -rw-r--r-- 18,871 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>logind.conf</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
    a.headerlink {
      color: #c60f0f;
      font-size: 0.8em;
      padding: 0 4px 0 4px;
      text-decoration: none;
      visibility: hidden;
    }

    a.headerlink:hover {
      background-color: #c60f0f;
      color: white;
    }

    h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
      visibility: visible;
    }
  </style><a href="index.html">Index </a>·
  <a href="systemd.directives.html">Directives </a>·
  <a href="../python-systemd/index.html">Python </a>·
  <a href="../libudev/index.html">libudev </a>·
  <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 215</span><hr><div class="refentry"><a name="logind.conf"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>logind.conf — Login manager configuration file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/etc/systemd/logind.conf</code></p></div><div class="refsect1"><a name="idm214189817760"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description">¶</a></h2><p>This file configures various parameters of the systemd login manager, <a href="systemd-logind.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-logind.service</span>(8)</span></a>.</p></div><div class="refsect1"><a name="idm214189815776"></a><h2 id="Options">Options<a class="headerlink" title="Permalink to this headline" href="#Options">¶</a></h2><p>All options are configured in the
                "<code class="literal">[Login]</code>" section:</p><div class="variablelist"><dl class="variablelist"><dt id="NAutoVTs="><span class="term"><code class="varname">NAutoVTs=</code></span><a class="headerlink" title="Permalink to this term" href="#NAutoVTs=">¶</a></dt><dd><p>Takes a positive
                                integer. Configures how many virtual
                                terminals (VTs) to allocate by default
                                that, when switched to and are
                                previously unused,
                                "<code class="literal">autovt</code>" services are
                                automatically spawned on. These
                                services are instantiated from the
                                template unit
                                <code class="filename">autovt@.service</code>
                                for the respective VT TTY name,
                                for example, <code class="filename">autovt@tty4.service</code>. By
                                default,
                                <code class="filename">autovt@.service</code>
                                is linked to
                                <code class="filename">getty@.service</code>.
                                In other words, login prompts are started
                                dynamically as the user switches to
                                unused virtual terminals. Hence, this
                                parameter controls how many login
                                "<code class="literal">gettys</code>" are
                                available on the VTs. If a VT is
                                already used by some other subsystem
                                (for example, a graphical login), this
                                kind of activation will not be
                                attempted. Note that the VT configured
                                in <code class="varname">ReserveVT=</code> is
                                always subject to this kind of
                                activation, even if it is not one of
                                the VTs configured with the
                                <code class="varname">NAutoVTs=</code>
                                directive. Defaults to 6. When set to
                                0, automatic spawning of
                                "<code class="literal">autovt</code>" services is
                                disabled.</p></dd><dt id="ReserveVT="><span class="term"><code class="varname">ReserveVT=</code></span><a class="headerlink" title="Permalink to this term" href="#ReserveVT=">¶</a></dt><dd><p>Takes a positive
                                integer. Identifies one
                                virtual terminal that shall
                                unconditionally be reserved for
                                <code class="filename">autovt@.service</code>
                                activation (see above). The VT
                                selected with this option will be
                                marked busy unconditionally, so that no
                                other subsystem will allocate it. This
                                functionality is useful to ensure that,
                                regardless of how many VTs are allocated
                                by other subsystems, one login
                                "<code class="literal">getty</code>" is always
                                available. Defaults to 6 (in other
                                words, there will always be a
                                "<code class="literal">getty</code>" available on
                                Alt-F6.). When set to 0, VT
                                reservation is
                                disabled.</p></dd><dt id="KillUserProcesses="><span class="term"><code class="varname">KillUserProcesses=</code></span><a class="headerlink" title="Permalink to this term" href="#KillUserProcesses=">¶</a></dt><dd><p>Takes a boolean
                                argument. Configures whether the
                                processes of a user should be killed
                                when the user completely logs out (i.e. after
                                the user's last session ended). Defaults to
                                "<code class="literal">no</code>".</p><p>Note that setting
                                <code class="varname">KillUserProcesses=1</code>
                                will break tools like
                                <a href="screen.html"><span class="citerefentry"><span class="refentrytitle">screen</span>(1)</span></a>.</p></dd><dt id="KillOnlyUsers="><span class="term"><code class="varname">KillOnlyUsers=</code>, </span><span class="term"><code class="varname">KillExcludeUsers=</code></span><a class="headerlink" title="Permalink to this term" href="#KillOnlyUsers=">¶</a></dt><dd><p>These settings take
                                space-separated lists of usernames
                                that influence the effect of
                                <code class="varname">KillUserProcesses=</code>. If
                                not empty, only processes of users
                                listed in
                                <code class="varname">KillOnlyUsers=</code> will
                                be killed when they log out
                                entirely. Processes of users listed in
                                <code class="varname">KillExcludeUsers=</code>
                                are excluded from being
                                killed. <code class="varname">KillExcludeUsers=</code>
                                defaults to "<code class="literal">root</code>"
                                and takes precedence over
                                <code class="varname">KillOnlyUsers=</code>,
                                which defaults to the empty list.</p></dd><dt id="IdleAction="><span class="term"><code class="varname">IdleAction=</code></span><a class="headerlink" title="Permalink to this term" href="#IdleAction=">¶</a></dt><dd><p>Configures the action
                                to take when the system is idle. Takes
                                one of "<code class="literal">ignore</code>",
                                "<code class="literal">poweroff</code>",
                                "<code class="literal">reboot</code>",
                                "<code class="literal">halt</code>",
                                "<code class="literal">kexec</code>",
                                "<code class="literal">suspend</code>",
                                "<code class="literal">hibernate</code>",
                                "<code class="literal">hybrid-sleep</code>", and
                                "<code class="literal">lock</code>". Defaults to
                                "<code class="literal">ignore</code>".</p><p>Note that this requires that
                                user sessions correctly report the
                                idle status to the system. The system
                                will execute the action after all
                                sessions report that they are idle,
                                no idle inhibitor lock is active,
                                and subsequently, the time configured
                                with <code class="varname">IdleActionSec=</code>
                                (see below) has expired.</p></dd><dt id="IdleActionSec="><span class="term"><code class="varname">IdleActionSec=</code></span><a class="headerlink" title="Permalink to this term" href="#IdleActionSec=">¶</a></dt><dd><p>Configures the delay
                                after which the action configured in
                                <code class="varname">IdleAction=</code> (see
                                above) is taken after the system is
                                idle.</p></dd><dt id="InhibitDelayMaxSec="><span class="term"><code class="varname">InhibitDelayMaxSec=</code></span><a class="headerlink" title="Permalink to this term" href="#InhibitDelayMaxSec=">¶</a></dt><dd><p>Specifies the maximum
                                time a system shutdown or sleep
                                request is delayed due to an inhibitor
                                lock of type "<code class="literal">delay</code>"
                                being active before the inhibitor is
                                ignored and the operation executes
                                anyway. Defaults to
                                5.</p></dd><dt id="HandlePowerKey="><span class="term"><code class="varname">HandlePowerKey=</code>, </span><span class="term"><code class="varname">HandleSuspendKey=</code>, </span><span class="term"><code class="varname">HandleHibernateKey=</code>, </span><span class="term"><code class="varname">HandleLidSwitch=</code></span><a class="headerlink" title="Permalink to this term" href="#HandlePowerKey=">¶</a></dt><dd><p>Controls whether
                                logind shall handle the system power
                                and sleep keys and the lid switch to
                                trigger actions such as system
                                power-off or suspend. Can be one of
                                "<code class="literal">ignore</code>",
                                "<code class="literal">poweroff</code>",
                                "<code class="literal">reboot</code>",
                                "<code class="literal">halt</code>",
                                "<code class="literal">kexec</code>",
                                "<code class="literal">suspend</code>",
                                "<code class="literal">hibernate</code>",
                                "<code class="literal">hybrid-sleep</code>", and
                                "<code class="literal">lock</code>". If
                                "<code class="literal">ignore</code>", logind will
                                never handle these keys. If
                                "<code class="literal">lock</code>", all running
                                sessions will be screen-locked;
                                otherwise, the specified action will
                                be taken in the respective event. Only
                                input devices with the
                                "<code class="literal">power-switch</code>" udev
                                tag will be watched for key/lid switch
                                events. <code class="varname">HandlePowerKey=</code>
                                defaults to
                                "<code class="literal">poweroff</code>".
                                <code class="varname">HandleSuspendKey=</code>
                                and
                                <code class="varname">HandleLidSwitch=</code>
                                default to "<code class="literal">suspend</code>".
                                <code class="varname">HandleHibernateKey=</code>
                                defaults to
                                "<code class="literal">hibernate</code>". Note
                                that the lid switch is ignored if the
                                system is inserted in a docking
                                station, or if more than one display
                                is connected.</p></dd><dt id="PowerKeyIgnoreInhibited="><span class="term"><code class="varname">PowerKeyIgnoreInhibited=</code>, </span><span class="term"><code class="varname">SuspendKeyIgnoreInhibited=</code>, </span><span class="term"><code class="varname">HibernateKeyIgnoreInhibited=</code>, </span><span class="term"><code class="varname">LidSwitchIgnoreInhibited=</code></span><a class="headerlink" title="Permalink to this term" href="#PowerKeyIgnoreInhibited=">¶</a></dt><dd><p>Controls whether
                                actions triggered by the power and
                                sleep keys and the lid switch are
                                subject to inhibitor locks. These
                                settings take boolean arguments. If
                                "<code class="literal">off</code>", the inhibitor
                                locks taken by applications in order
                                to block the requested operation are
                                respected. If "<code class="literal">on</code>",
                                the requested operation is executed in
                                any
                                case. <code class="varname">PowerKeyIgnoreInhibited=</code>,
                                <code class="varname">SuspendKeyIgnoreInhibited=</code>
                                and
                                <code class="varname">HibernateKeyIgnoreInhibited=</code>
                                default to "<code class="literal">off</code>".
                                <code class="varname">LidSwitchIgnoreInhibited=</code>
                                defaults to
                                "<code class="literal">yes</code>". This means
                                that the lid switch does not respect
                                suspend blockers by default, but the
                                power and sleep keys do.
                                </p></dd><dt id="RuntimeDirectorySize="><span class="term"><code class="varname">RuntimeDirectorySize=</code></span><a class="headerlink" title="Permalink to this term" href="#RuntimeDirectorySize=">¶</a></dt><dd><p>Sets the size limit on
                                the
                                <code class="varname">$XDG_RUNTIME_DIR</code>
                                runtime directory for each user who
                                logs in. Takes a size in bytes,
                                optionally suffixed with the usual K, G,
                                M, and T suffixes, to the base 1024
                                (IEC). Alternatively, a numerical
                                percentage suffixed by "<code class="literal">%</code>"
                                may be specified, which sets the size
                                limit relative to the amount of
                                physical RAM. Defaults to 10%. Note
                                that this size is a safety limit
                                only. As each runtime directory is a
                                tmpfs file system, it will only consume
                                as much memory as is needed.
                                </p></dd><dt id="RemoveIPC="><span class="term"><code class="varname">RemoveIPC=</code></span><a class="headerlink" title="Permalink to this term" href="#RemoveIPC=">¶</a></dt><dd><p>Controls whether
                                System V and POSIX IPC objects
                                belonging to the user shall be removed
                                when the user fully logs out. Takes a
                                boolean argument. If enabled, the user
                                may not consume IPC resources after
                                the last of his sessions
                                terminated. This covers System V
                                semaphores, shared memory and message
                                queues, as well as POSIX shared memory
                                and message queues. Note that IPC
                                objects of the root user are excluded
                                from the effect of this
                                setting. Defaults to
                                "<code class="literal">yes</code>".</p></dd></dl></div></div><div class="refsect1"><a name="idm214188723664"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
                          <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
                          <a href="systemd-logind.service.html"><span class="citerefentry"><span class="refentrytitle">systemd-logind.service</span>(8)</span></a>,
                          <a href="loginctl.html"><span class="citerefentry"><span class="refentrytitle">loginctl</span>(1)</span></a>,
                          <a href="systemd-system.conf.html"><span class="citerefentry"><span class="refentrytitle">systemd-system.conf</span>(5)</span></a>
                  </p></div></div></body></html>