On Thu, May 1, 2008 at 9:28 AM, Ives, Keith-P59429 <[EMAIL PROTECTED]> wrote:
> ...
> Something we do on thick clients (when locked up) short of a reboot is to
> run a script that kills Xsun and pkill –user processes.  This works pretty
> good but I am leery about doing this on a sunray server.

Killing all Xsun proceses (and Xnewt processes, in the next release
of SRSS) will log out all local sessions.  That's probably as safe as
any other method, and it at least gives the user's applications a
chance to react and maybe save in-progress files, give up lockfiles
or do other cleanup before they exit.  (This won't terminate remote
X sessions where the X server is running on some other machine.
If you care about those then you'll need to terminate the desktop
processes, probably by killing their 'dtsession' or 'gnome-session'
ancestors.)

You could script something around 'pgrep' to kill the X servers, but
by far the easiest way to do it for Sun Ray sessions is to do a cold
restart, 'utrestart -c', followed by a  'sleep 60' to allow time for all of
the X servers to realise that they should exit.

Of course SRSS will come back up and launch a new crop of X
servers.  If you're worried abuot somebody trying to log in during
that time then you could 'touch /etc/nologin' to prevent it -- and
remember to remove that file when you're ready for people to log in
again.  There's no way currently to tell SRSS to shut down and stay
down, which is what you really want here.  That would be a
reasonable RFE ("Request For Enhancement", Sun jargon for a
software change that isn't a bugfix) if you feel like filing it.

OttoM.
__
ottomeister

Disclaimer: These are my opinions.  I do not speak for my employer.

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to