Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-19 Thread Fred Liu
processes after x2goterminate-session In my tests dbus and all processes running inside of the session having PGID of x2goruncommand. Alex Am 13.08.21 um 01:47 schrieb Ulrich Sibiller: > Are you sure dbus does not have its own PGID? > > Uli > > On Thu, Aug 12, 2021 at 7:36 PM Ole

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-13 Thread Oleksandr Shneyder
In my tests dbus and all processes running inside of the session having PGID of x2goruncommand. Alex Am 13.08.21 um 01:47 schrieb Ulrich Sibiller: > Are you sure dbus does not have its own PGID? > > Uli > > On Thu, Aug 12, 2021 at 7:36 PM Oleksandr Shneyder > wrote: >> >> Why we are not just

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-13 Thread Ulrich Sibiller
Are you sure dbus does not have its own PGID? Uli On Thu, Aug 12, 2021 at 7:36 PM Oleksandr Shneyder wrote: > > 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

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-12 Thread Oleksandr Shneyder
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

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-12 Thread Ulrich Sibiller
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

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-11 Thread Norman Gaywood
There is also the issue that and x2go login sets "linger" mode: loginctl enable-linger If this is needed (linger needs to be enabled), it would be good if x2go did a: loginctl disable-linger on log out. On Wed, 11 Aug 2021 at 21:02, Ulrich Sibiller wrote: > On Wed, Aug 11, 2021 at 11:57 AM

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-11 Thread Mike Gabriel
On Di 10 Aug 2021 18:10:41 CEST, Ulrich Sibiller wrote: Probably it would be best to use dbus for session termination if it is running. This could be one puzzle piece, indeed. Basically, we can kill x2goruncommand and then the session manager would automatically go into logout.

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-11 Thread Ulrich Sibiller
On Wed, Aug 11, 2021 at 11:57 AM Mike Gabriel wrote: > > Probably it would be best to use dbus for session termination if it > > is running. > > This could be one puzzle piece, indeed. Basically, we can kill > x2goruncommand and then the session manager would automatically go > into logout. > >

Re: [X2Go-Dev] Clean processes after x2goterminate-session

2021-08-10 Thread Ulrich Sibiller
Probably it would be best to use dbus for session termination if it is running. Uli On Tue, Aug 10, 2021 at 5:15 PM Oleksandr Shneyder wrote: > > Hello all, > > I realized, that sometimes (depends on distro and DE) after terminating > session with x2goterminate-session some processes related to

[X2Go-Dev] Clean processes after x2goterminate-session

2021-08-10 Thread Oleksandr Shneyder
Hello all, I realized, that sometimes (depends on distro and DE) after terminating session with x2goterminate-session some processes related to the X2Go session are not exiting. At the moment x2goterminate-session only terminates the agent process and we can have leftovers like x2goruncommand,