]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl,loginctl,machinectl: add --signal=list
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Feb 2021 15:03:03 +0000 (16:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2021 07:50:40 +0000 (08:50 +0100)
commit97ab9dfc0d13b142c19335cc53cfd77f96cd2aab
treeac0e3a9c3cff180a22db798cfa003416c4845142
parent86beb21302082e9df0aa8576b89fd29c9e1a43be
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.
man/loginctl.xml
man/standard-options.xml
src/shared/parse-argument.c