man: documet that loginctl {terminate|kill}-{session|user} take the empty string, optionally

Fixes: #19711
This commit is contained in:
Lennart Poettering 2021-05-25 17:42:34 +02:00
parent 68892f94ae
commit 9f48b4e40e

View file

@ -113,18 +113,18 @@
<varlistentry> <varlistentry>
<term><command>terminate-session</command> <replaceable>ID</replaceable></term> <term><command>terminate-session</command> <replaceable>ID</replaceable></term>
<listitem><para>Terminates a session. This kills all processes <listitem><para>Terminates a session. This kills all processes of the session and deallocates all
of the session and deallocates all resources attached to the resources attached to the session. If the argument is specified as empty string the session invoking
session. </para></listitem> the command is terminated.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><command>kill-session</command> <replaceable>ID</replaceable></term> <term><command>kill-session</command> <replaceable>ID</replaceable></term>
<listitem><para>Send a signal to one or more processes of the <listitem><para>Send a signal to one or more processes of the session. Use
session. Use <option>--kill-who=</option> to select which <option>--kill-who=</option> to select which process to kill. Use <option>--signal=</option> to
process to kill. Use <option>--signal=</option> to select the select the signal to send. If the argument is specified as empty string the signal is sent to the
signal to send.</para></listitem> session invoking the command.</para></listitem>
</varlistentry> </varlistentry>
</variablelist></refsect2> </variablelist></refsect2>
@ -184,17 +184,17 @@
<varlistentry> <varlistentry>
<term><command>terminate-user</command> <replaceable>USER</replaceable></term> <term><command>terminate-user</command> <replaceable>USER</replaceable></term>
<listitem><para>Terminates all sessions of a user. This kills <listitem><para>Terminates all sessions of a user. This kills all processes of all sessions of the
all processes of all sessions of the user and deallocates all user and deallocates all runtime resources attached to the user. If the argument is specified as
runtime resources attached to the user.</para></listitem> empty string the sessions of the user invoking the command are terminated.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><command>kill-user</command> <replaceable>USER</replaceable></term> <term><command>kill-user</command> <replaceable>USER</replaceable></term>
<listitem><para>Send a signal to all processes of a user. Use <listitem><para>Send a signal to all processes of a user. Use <option>--signal=</option> to select
<option>--signal=</option> to select the signal to send. the signal to send. If the argument is specified as empty string the signal is sent to the sessions
</para></listitem> of the user invoking the command.</para></listitem>
</varlistentry> </varlistentry>
</variablelist></refsect2> </variablelist></refsect2>