]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemd.xml
manager: reexecute on SIGRTMIN+25, user instances only
authorFranck Bui <fbui@suse.com>
Fri, 23 Jul 2021 09:12:03 +0000 (11:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Jul 2021 16:50:30 +0000 (18:50 +0200)
commit463aef23a73d7850e0208cf4e96fd448693a755a
treef4f4ba8f33806f036d4ed8df5b0fe434bfe3e491
parentfac5588944743f1fc7d92b5fe621ed43ec416c43
manager: reexecute on SIGRTMIN+25, user instances only

Before this patch, there was no way to request all running user instances for
reexecuting. However this can be useful especially during package updates
otherwise user instances are never updated and keep running a potentially very
old version of the binaries.

Now assuming that we have enough priviledge, it's possible to request
reexecution of all user instances:

  systemctl kill --signal=SIGRTMIN+25 "user@*.service"

Note that this request is obviously asynchronous as it relies on a
signal. Keeping "systemctl kill" as the only interface should be good enough to
make this obvious and that's the reason why another interface, such as
"systemctl --global daemon-reexec" has not been considered.

PID1 already uses SIGTERM for reexecuting hence sending it SIGRTMIN+25 is a
nop.
man/systemd.xml
src/core/manager.c