Sessions don't close properly

Vladimir Mokrozub via Ltsp-discuss <[email protected]> Sat, 13 Jun 2020 12:01:28 +0300
Newsgroups gmane.linux.terminal-server.general
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============2853562894956258763==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0004_01D6417A.5ED71DA0"
Content-Language: ru

This is a multipart message in MIME format.

------=_NextPart_000_0004_01D6417A.5ED71DA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

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       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

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

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

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

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

vma        752  0.0  0.0   2388   700 pts/1    Ss+  11:45   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.

 


------=_NextPart_000_0004_01D6417A.5ED71DA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"DejaVu Sans Mono";
	panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DRU link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-US>We have a problem with LTSP 5 in Debian Buster: some user =
processes keep running even after a user logs =
out:<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US>Here's =
an example for the user &quot;vma&quot;:<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"DejaVu Sans =
Mono"'>USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PID %CPU =
%MEM&nbsp;&nbsp;&nbsp; VSZ&nbsp;&nbsp; RSS =
TTY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STAT START&nbsp;&nbsp; TIME =
COMMAND<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"DejaVu Sans =
Mono"'>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 674&nbsp; 0.0&nbsp; =
0.1&nbsp; 81352 14304 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
SLs&nbsp; 11:45&nbsp;&nbsp; 0:00 sshd: vma =
[priv]<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"DejaVu Sans =
Mono"'>vma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 697&nbsp; 0.0 =
&nbsp;0.0&nbsp; 21156&nbsp; 9004 =
?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ss&nbsp;&nbsp; =
11:45&nbsp;&nbsp; 0:00 /lib/systemd/systemd =
--user<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"DejaVu Sans =
Mono"'>vma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 718&nbsp; 0.0&nbsp; =
0.0 227000&nbsp; 2788 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
S&nbsp;&nbsp;&nbsp; 11:45&nbsp;&nbsp; 0:00 =
(sd-pam)<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"DejaVu Sans =
Mono"'>vma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 751&nbsp; 0.0&nbsp; =
0.0&nbsp; 81508&nbsp; 6092 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
S&nbsp;&nbsp;&nbsp; 11:45&nbsp;&nbsp; 0:00 sshd: =
vma@pts/1<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:"DejaVu Sans =
Mono"'>vma&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 752&nbsp; 0.0&nbsp; =
0.0&nbsp;&nbsp; 2388&nbsp;&nbsp; 700 pts/1&nbsp;&nbsp;&nbsp; Ss+&nbsp; =
11:45&nbsp;&nbsp; 0:00 /bin/sh -<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US>The problem seems to be related to =
these issues:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><a =
href=3D"https://github.com/mate-desktop/mate-session-manager/issues/165">=
https://github.com/mate-desktop/mate-session-manager/issues/165</a> (we =
use XFCE)<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><a =
href=3D"https://github.com/canonical/lightdm/issues/45">https://github.co=
m/canonical/lightdm/issues/45</a><o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US><a =
href=3D"https://github.com/systemd/systemd/issues/8598">https://github.co=
m/systemd/systemd/issues/8598</a> (not sure about this =
one)<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-US>Is there a quick workaround? Maybe an LTSP script that will =
kill these processes when a user does logout?<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
lang=3DEN-US =
style=3D'mso-fareast-language:RU'>Regards,<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-US =
style=3D'mso-fareast-language:RU'>Vladimir.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
lang=3DEN-US><o:p>&nbsp;</o:p></span></p></div></body></html>
------=_NextPart_000_0004_01D6417A.5ED71DA0--



--===============2853562894956258763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2853562894956258763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_____________________________________________________________________
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

--===============2853562894956258763==--