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
signature.asc
Description: PGP signature