<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
HI..</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I did go ahead and create a systemd script that runs at boot time to clear the linger folder out and recreate the session database.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Any other thoughts on this?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Thanks<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Rob<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<hr tabindex="-1" style="display:inline-block; width:98%;">
<b>From:</b> Mike Gabriel<br>
<b>Sent:</b> Wednesday, October 23, 2019 3:38 PM<br>
<b>To:</b> Montjoy, Robert (montjoy)<br>
<b>Cc:</b> x2go-dev@lists.x2go.org<br>
<b>Subject:</b> Re: [X2Go-Dev] loginctl 'enable-linger' causes systemd --user to respawn on boot
<div><br>
</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Mihai, hi Robert,<br>
<br>
On  Mi 16 Okt 2019 22:11:37 CEST, Montjoy, Robert (montjoy) wrote:<br>
<br>
> Hi.<br>
><br>
> At one time "loginctl  enable-linger" was added to the  <br>
> x2gostartagent to make sure the systemd did not kill the x2go  <br>
> process on disconnect. This has had the probably undesired affect of  <br>
> having systemd --user username being executed on boot for every x2go  <br>
> user.  At the last boot about 70 processes (one for systemd and one  <br>
> for pam) were spawned. This is probably not what we want. Is there a  <br>
> better way to handle the systemd termination issue? Should something  <br>
> like<br>
><br>
> systemd-run --scope --user x2goagent .....<br>
><br>
> be used instead? Or can x2go cleanup this entry on termination?  <br>
> Maybe have x2gocleansessions do it?<br>
><br>
> Note: I will probably cleanup /var/lib/systemd/linger on boot by  <br>
> executing rm -f /var/lib/systemd/linger/* but that it is more of a  <br>
> "hammer" approach than anything else.<br>
><br>
> Thanks in advance.<br>
><br>
> Rob<br>
<br>
@Mihai: Can you confirm this? This needs to be addressed as an  <br>
important bug, I guess.<br>
<br>
Mike<br>
-- <br>
<br>
DAS-NETZWERKTEAM<br>
c\o Technik- und Ökologiezentrum Eckernförde<br>
Mike Gabriel, Marienthaler str. 17, 24340 Eckernförde<br>
mobile: +49 (1520) 1976 148<br>
landline: +49 (4351) 850 8940<br>
<br>
GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31<br>
mail: mike.gabriel@das-netzwerkteam.de, <a href="http://das-netzwerkteam.de" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" style="">
http://das-netzwerkteam.de</a><br>
<br>
</div>
</span></font></div>
</body>
</html>