Bug#946645: KillUserProcesses=no disregarded for some cgroups
chrysn
chrysn at fsfe.org
Mon Feb 10 15:29:47 GMT 2020
On Mon, Feb 10, 2020 at 03:04:49PM +0100, Ansgar wrote:
> If I start an xterm via Alt-F2 in gnome, the xterm process runs in a
> cgroup like gnome-launched-xterm-489694.scope. gnome-terminal or an
> xterm started in gnome-terminal run in the gnome-terminal-
> server.service cgroup. I expect openbox doesn't do this and processes
> started by openbox run in the same cgroup as openbox itself.
>
> `systemd-cgls` is useful to see how processes are organized into
> cgroups.
>
> The gnome-launched-*.scope has KillMode=control-group, so all processes
> including background processes like tmux get killed when the unit gets
> stopped (systemd --user show -p KillMode gnome-launched-....scope).
That does not explain the on-and-off behavior, but helps in
understanding why processes get killed in the first place.
Then, however, is KillUserProcesses completely obsolete? A user trying
to debug a situation like mine will currently wind up in the discussion
of #825394 and look into KillUserProcesses' documentation. Even if it's
not completely obsolete, a warning that desktop environment spawned
processes might also be subject to killing from their desktop
environment's KillMode would be helpful.
Kind regards
chrysn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200210/b8a9ef35/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list