Marcus Young wrote:
ottomeister,
could this "detached greeter reaper" mechanism be used as a way of loging out
sessions after a defined period of inactivity - say a day?
No, sorry. This mechanism is built on top of hooks placed
around the code dtlogin/gdm use to bracket the greeter
(Xstartup/Xsetup/Xreset).
If you want to terminate a session after it's been idle for
some time, this really isn't something that is particular to
"Sun Ray" - it's a generic problem for X sessions. I'd look
at:
http://freshmeat.net/projects/xautolock/
The best solution is probably to run it out of /usr/dt/config/Xstartup,
so that it runs as root and can't be terminated by users, and for
the kill script write a wrapper around kill/pkill to kill the X server
for the given display. Something like:
#!/bin/ksh -p
pkill -f "^/usr/openwin/bin/Xsun ${DISPLAY%%.0} "
Be careful to use the spaces exactly as in the example above
(including the space before the closing quote, to avoid incorrect
prefix matches).
This is not a graceful logout, of course. If users haven't saved
their work, they may lose it. You may want to add a mail message
to the kill wrapper so users get notified as to what occurred and
when.
-Bob
Marcus
ottomeister schrieb:
...
Are these Sun Rays connected to a single server, or are they
connected to a group of servers? If there are multiple servers
then it's possible that the servers aren't working together
properly to locate the user's existing session.
If the critical time period was closer to 15 minutes then I would
suspect that the SRSS "detached greeter reaper" mechanism
was to blame. This is usually caused by a site-local Xstartup
script (in /etc/dt/config) which does not contain the logic that
SRSS places into the system Xstartup file (in /usr/dt/config).
...
Hello!
It's a single server. There is no Xstartup in /etc/dt/config. Just the
one (unmodified) in /usr/dt/config. Must I copy this to
/etc/dt/config?
With regards,
Peter Ohlerich.
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users