Hi,<div><br></div><div>I've tried several ways to send a shutdown to my screen sessions running on my grid server, with mixed results. </div><div><span class="Apple-style-span" style="font-family: -webkit-sans-serif; line-height: 19px; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">
screen -S <span class="Apple-style-span" style="font-size: 13px; line-height: 14px; ">$sessname<span class="Apple-style-span" style="font-size: 12px; line-height: 13px; "> -X eval "stuff shutdown^M"</span></span><br>
</pre></span><div>Works best for me, (I also have a regions-service running), I check if the region went down with the above, if not:</div><div><span class="Apple-style-span" style="font-family: -webkit-sans-serif; line-height: 19px; "><pre style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; ">
screen -S $sessname -r -m  -X quit<br></pre></span></div><div>And a final sweep kills the process if it still hangs after that (which happened a lot around r7000 or so).</div><div><br></div><div>Once the region is down, rinse and repeat for the UGAIMs... :-)</div>
<div><br></div><div>My scripting is really horrible, since it calls other scripts and nothing is really defined/documented, but it works for me. I hope these bits help a little?</div><div><br></div><div>Rhian</div><br><div class="gmail_quote">
On Thu, Jan 15, 2009 at 8:51 PM, Ai Austin <span dir="ltr"><<a href="mailto:ai.ai.austin@googlemail.com">ai.ai.austin@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have just started to get edgy about the way I am shutting down our<br>
UGAIM and opensim.exe region servers.... I am using the script from<br>
<br>
      <a href="http://opensimulator.org/wiki/Automating_Tasks" target="_blank">http://opensimulator.org/wiki/Automating_Tasks</a><br>
<br>
But this just task kills the process... so no shutdown command is<br>
given to Opensim.exe or the UGAIM servers... and they are I assume<br>
just "crashed"... that might not be nice, even though I check if any<br>
users are logged on and make sure they are not before I shutdown.  I<br>
don't want to corrupt the database and I want to ensure any<br>
housekeeping necessary on server shutdown is properly done.<br>
<br>
Is the Wiki recommended script for automating shut down task safe?<br>
<br>
P.S. this page might be a good one to post a script for clearing out<br>
the asset data base server of unreachable assets in certain service situations?<br>
<br>
_______________________________________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>
</blockquote></div><br></div>