[X2Go-Dev] loginctl 'enable-linger' causes systemd --user to respawn on boot
Orion Poplawski
orion at nwra.com
Thu Sep 28 17:38:15 CEST 2023
On 10/16/19 14:11, Montjoy, Robert (montjoy) wrote:
> Hi.
>
> At one time "loginctl enable-linger" was added to the x2gostartagent to
> make sure the systemd did not kill the x2go process on disconnect. This
> has had the probably undesired affect of having systemd --user username
> being executed on boot for every x2go user. At the last boot about 70
> processes (one for systemd and one for pam) were spawned. This is
> probably not what we want. Is there a better way to handle the systemd
> termination issue? Should something like
>
> systemd-run --scope --user x2goagent .....
>
> be used instead? Or can x2go cleanup this entry on termination? Maybe
> have x2gocleansessions do it?
>
> Note: I will probably cleanup /var/lib/systemd/linger on boot by
> executing rm -f /var/lib/systemd/linger/* but that it is more of a
> "hammer" approach than anything else.
>
> Thanks in advance.
>
> Rob
I just noticed this issue on our systems. I think switching to
systemd-run is likely the better way to go. The attached patch is what
I am testing on our systems.
--
Orion Poplawski
he/him/his - surely the least important thing about me
IT Systems Manager 720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion at nwra.com
Boulder, CO 80301 https://www.nwra.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-systemd-run-scope-user-instead-of-loginctl-enabl.patch
Type: text/x-patch
Size: 4764 bytes
Desc: not available
URL: <https://lists.x2go.org/pipermail/x2go-dev/attachments/20230928/269ecd98/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3847 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.x2go.org/pipermail/x2go-dev/attachments/20230928/269ecd98/attachment-0001.bin>
More information about the x2go-dev
mailing list