Why we are not just saving the x2goruncommand PID in the session
directory. All spawned processes will have a PGID identical to the PID
of x2goruncommand. In the x2goterminate-session we can terminate all
processes with PGID identical to x2goruncommand PID:
kill -- -X2GORUNCMD_PID
looks simple
Hmm, linger is a feature _per user_ not _per sessions_. So this can
only be done if the user does have/intent to have other sessions as
well.
Uli
On Thu, Aug 12, 2021 at 4:00 AM Norman Gaywood wrote:
>
> There is also the issue that and x2go login sets "linger" mode:
>
> loginctl enable-linger