On Mon, Jul 25, 2011 at 13:52:30 (CEST), Moritz Struebe wrote: > On 2011-07-25 13:37, Reinhard Tartler wrote: >> To be honest, I'd like to remove the cleanup daemon completely and >> integrate the cleanup into the listsessions command. The current >> implementation of the cleanup daemon in perl that runs as root and >> doesn't work properly anyway makes me feel quite uneasy. > > I think there are two things that nedd cleaning up: > 1) Clean dead sessions from the DB to free displays. > 2) Clean up hold sessions in the home-dir to free memory. > > The first is probably better done as daemon/cron-job. The daemon needs > extended rights, because it needs access to all sessions (this is > relevant due to the postgres-implementation), and needs to run on every > server. Running as x2gouser should do the trick, though.
Why can't this run in user context? I mean the user has priviledges to create sessions, why can't he clean up after himself? > The second is probably best placed in x2gocreatesession, as the user > should have the rights to clean up it's old sessions (root normally may > not access foreign homes via NFS). Why is this cleanup better done at 'create session' time rather than at 'listing sessions' time? -- Gruesse/greetings, Reinhard Tartler, KeyID 945348A4 _______________________________________________ X2go-Dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/x2go-dev
