Re: Sessions don't close properly

Alkis Georgopoulos <[email protected]> Sat, 13 Jun 2020 12:57:18 +0300
Newsgroups gmane.linux.terminal-server.general
Message-ID <[email protected]>
Set KillUserProcesses=3Dyes in /etc/systemd/logind.conf


On 6/13/20 12:01 PM, Vladimir Mokrozub via Ltsp-discuss wrote:
We have a problem with LTSP 5 in Debian Buster: some user processes keep
running even after a user logs out:

Here's an example for the user "vma":

USER=A0=A0=A0=A0=A0=A0 PID %CPU %MEM=A0=A0=A0 VSZ=A0=A0 RSS TTY=A0=A0=A0=A0=
=A0 STAT START=A0=A0 TIME COMMAND

root=A0=A0=A0=A0=A0=A0 674=A0 0.0=A0 0.1=A0 81352 14304 ?=A0=A0=A0=A0=A0=A0=
=A0 SLs=A0 11:45=A0=A0 0:00 sshd:
vma [priv]

vma=A0=A0=A0=A0=A0=A0=A0 697=A0 0.0 =A00.0=A0 21156=A0 9004 ?=A0=A0=A0=A0=
=A0=A0=A0 Ss=A0=A0 11:45=A0=A0 0:00
/lib/systemd/systemd --user

vma=A0=A0=A0=A0=A0=A0=A0 718=A0 0.0=A0 0.0 227000=A0 2788 ?=A0=A0=A0=A0=A0=
=A0=A0 S=A0=A0=A0 11:45=A0=A0 0:00 (sd-pam)

vma=A0=A0=A0=A0=A0=A0=A0 751=A0 0.0=A0 0.0=A0 81508=A0 6092 ?=A0=A0=A0=A0=
=A0=A0=A0 S=A0=A0=A0 11:45=A0=A0 0:00 sshd:
vma@pts/1

vma=A0=A0=A0=A0=A0=A0=A0 752=A0 0.0=A0 0.0=A0=A0 2388=A0=A0 700 pts/1=A0=A0=
=A0 Ss+=A0 11:45=A0=A0 0:00 /bin/sh -

The problem seems to be related to these issues:

https://github.com/mate-desktop/mate-session-manager/issues/165 (we use
XFCE)

https://github.com/canonical/lightdm/issues/45

https://github.com/systemd/systemd/issues/8598 (not sure about this one)

Is there a quick workaround? Maybe an LTSP script that will kill these
processes when a user does logout?

Regards,

Vladimir.


_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net