systemctl,loginctl,machinectl: add --signal=list
This lists numerical signal values: $ systemctl --signal list SIGNAL NAME 1 SIGHUP 2 SIGINT 3 SIGQUIT ... 62 SIGRTMIN+28 63 SIGRTMIN+29 64 SIGRTMIN+30 This is useful when trying to kill e.g. systemd with a specific signal number using kill. kill doesn't accept our fancy signal names like RTMIN+4, so one would have to calculate that value somehow. Doing systemctl --signal list | grep -F RTMIN+4 is a nice way of doing that.
This commit is contained in:
+8
-7
@@ -334,13 +334,14 @@
|
||||
<term><option>-s</option></term>
|
||||
<term><option>--signal=</option></term>
|
||||
|
||||
<listitem><para>When used with <command>kill-session</command>
|
||||
or <command>kill-user</command>, choose which signal to send
|
||||
to selected processes. Must be one of the well known signal
|
||||
specifiers, such as <constant>SIGTERM</constant>,
|
||||
<constant>SIGINT</constant> or <constant>SIGSTOP</constant>.
|
||||
If omitted, defaults to
|
||||
<constant>SIGTERM</constant>.</para></listitem>
|
||||
<listitem><para>When used with <command>kill-session</command> or <command>kill-user</command>,
|
||||
choose which signal to send to selected processes. Must be one of the well known signal specifiers,
|
||||
such as <constant>SIGTERM</constant>, <constant>SIGINT</constant> or <constant>SIGSTOP</constant>.
|
||||
If omitted, defaults to <constant>SIGTERM</constant>.</para>
|
||||
|
||||
<para>The special value <literal>help</literal> will list the known values and the program will exit
|
||||
immediately, and the special value <literal>list</literal> will list known values along with the
|
||||
numerical signal numbers and the program will exit immediately.</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
|
||||
@@ -73,7 +73,8 @@
|
||||
<option>SIGTERM</option>.</para>
|
||||
|
||||
<para>The special value <literal>help</literal> will list the known values and the program will exit
|
||||
immediately.</para>
|
||||
immediately, and the special value <literal>list</literal> will list known values along with the
|
||||
numerical signal numbers and the program will exit immediately.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
Reference in New Issue
Block a user