2 .\" Title: systemd-loginctl
3 .\" Author: Lennart Poettering <lennart@poettering.net>
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: systemd-loginctl
10 .TH "SYSTEMD\-LOGINCTL" "1" "02/15/2012" "systemd" "systemd-loginctl"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 systemd-loginctl \- Control the systemd login manager
33 .HP \w'\fBsystemd\-loginctl\ \fR\fB[OPTIONS...]\fR\fB\ \fR\fB{COMMAND}\fR\fB\ \fR\fB[NAME...]\fR\ 'u
34 \fBsystemd\-loginctl \fR\fB[OPTIONS...]\fR\fB \fR\fB{COMMAND}\fR\fB \fR\fB[NAME...]\fR
37 \fBsystemd\-loginctl\fR
38 may be used to introspect and control the state of the
43 The following options are understood:
45 \fB\-\-help\fR, \fB\-h\fR
47 Prints a short help text and exits\&.
52 Prints a short version string and exits\&.
55 \fB\-\-property=\fR, \fB\-p\fR
57 When showing session/user/ properties, limit display to certain properties as specified as argument\&. If not specified all set properties are shown\&. The argument should be a property name, such as
58 Sessions\&. If specified more than once all properties with the specified names are shown\&.
61 \fB\-\-all\fR, \fB\-a\fR
63 When showing unit/job/manager properties, show all properties regardless whether they are set or not\&.
68 Do not pipe output into a pager\&.
74 \fBkill\-session\fR, choose which processes to kill\&. Must be one of
77 to select whether to kill only the leader process of the session or all processes of the session\&. If omitted defaults to
81 \fB\-\-signal=\fR, \fB\-s\fR
86 \fBkill\-user\fR, choose which signal to send to selected processes\&. Must be one of the well known signal specifiers such as SIGTERM, SIGINT or SIGSTOP\&. If omitted defaults to
90 \fB\-H\fR, \fB\-\-host\fR
92 Execute operation remotely\&. Specify a hostname, or username and hostname separated by @, to connect to\&. This will use SSH to talk to the remote login manager instance\&.
95 \fB\-P\fR, \fB\-\-privileged\fR
97 Acquire privileges via PolicyKit before executing the operation\&.
100 The following commands are understood:
104 List current sessions\&.
107 \fBsession\-status [ID\&.\&.\&.]\fR
109 Show terse runtime status information about one or more sessions\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use
114 \fBshow\-session [ID\&.\&.\&.]\fR
116 Show properties of one or more sessions or the manager itself\&. If no argument is specified properties of the manager will be shown\&. If a session ID is specified properties of the session is shown\&. By default, empty properties are suppressed\&. Use
118 to show those too\&. To select specific properties to show use
119 \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
120 \fBsession\-status\fR
121 if you are looking for formatted human\-readable output\&.
124 \fBactivate [ID\&.\&.\&.]\fR
126 Activate one or more sessions\&. This brings one or more sessions into the foreground, if another session is currently in the foreground on the respective seat\&.
129 \fBlock\-session [ID\&.\&.\&.]\fR, \fBunlock\-session [ID\&.\&.\&.]\fR
131 Activates/deactivates the screen lock on one or more sessions, if the session supports it\&.
134 \fBterminate\-session [ID\&.\&.\&.]\fR
136 Terminates a session\&. This kills all processes of the session and deallocates all resources attached to the session\&.
139 \fBkill\-session [ID\&.\&.\&.]\fR
141 Send a signal to one or more processes of the session\&. Use
143 to select which process to kill\&. Use
145 to select the signal to send\&.
150 List currently logged in users\&.
153 \fBuser\-status [USER\&.\&.\&.]\fR
155 Show terse runtime status information about one or more logged in users\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use
157 instead\&. Users may be specified by their usernames or numeric user IDs\&.
160 \fBshow\-user [USER\&.\&.\&.]\fR
162 Show properties of one or more users or the manager itself\&. If no argument is specified properties of the manager will be shown\&. If a user is specified properties of the user is shown\&. By default, empty properties are suppressed\&. Use
164 to show those too\&. To select specific properties to show use
165 \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
167 if you are looking for formatted human\-readable output\&.
170 \fBenable\-linger [USER\&.\&.\&.]\fR, \fBdisable\-linger [USER\&.\&.\&.]\fR
172 Enable/disable user lingering for one or more users\&. If enabled for a specific user a user manager is spawned for him/her at boot, and kept around after logouts\&. This allows users who aren\*(Aqt logged in to run long\-running services\&.
175 \fBterminate\-user [USER\&.\&.\&.]\fR
177 Terminates all sessions of a user\&. This kills all processes of all sessions of the user and deallocates all runtime resources attached to the user\&.
180 \fBkill\-user [USER\&.\&.\&.]\fR
182 Send a signal to all processes of a user\&. Use
184 to select the signal to send\&.
189 List currently available seats on the local system\&.
192 \fBseat\-status [NAME\&.\&.\&.]\fR
194 Show terse runtime status information about one or more seats\&. This function is intended to generate human\-readable output\&. If you are looking for computer\-parsable output, use
199 \fBshow\-seat [NAME\&.\&.\&.]\fR
201 Show properties of one or more seats or the manager itself\&. If no argument is specified properties of the manager will be shown\&. If a seat is specified properties of the seat are shown\&. By default, empty properties are suppressed\&. Use
203 to show those too\&. To select specific properties to show use
204 \fB\-\-property=\fR\&. This command is intended to be used whenever computer\-parsable output is required\&. Use
206 if you are looking for formatted human\-readable output\&.
209 \fBattach [NAME] [DEVICE\&.\&.\&.]\fR
211 Attach one or more devices to a seat\&. The devices should be specified via device paths in the
213 file system\&. To create a new seat attach at least one graphics card to a previously unused seat names\&. seat names may consist only of a\-z, A\-Z, 0\-9, "\-" and "_" and must be prefixed with "seat"\&. To drop assignment of a device to a specific seat just reassign it to a different seat, or use
214 \fBflush\-devices\fR\&.
219 Removes all device assignments previously created with
220 \fBattach\fR\&. After this call only automatically generated seats will remain and all seat hardware is assigned to them\&.
223 \fBterminate\-seat [NAME\&.\&.\&.]\fR
225 Terminates all sessions on a seat\&. This kills all processes of all sessions on a seat and deallocates all runtime resources attached to them\&.
229 On success 0 is returned, a non\-zero failure code otherwise\&.
236 is not given; overrides
237 \fI$PAGER\fR\&. Setting this to an empty string or the value
239 is equivalent to passing
240 \fB\-\-no\-pager\fR\&.
247 \fBsystemd-logind.conf\fR(5)
250 \fBLennart Poettering\fR <\&lennart@poettering\&.net\&>