<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Look at this page for Automating  OpenSim startup, I'm not  sure about accessing the consoles with Windows after  running start. I  have my own Linux sever running  OpenSim going and using the  Screen Command works fine for me. I ssh in and can get to the consoles. Though I  would agree it wouldn't probably hurt to have a remote console or maybe even a web based console to  help in managing OpenSim.<div><br class="webkit-block-placeholder"></div><div><a href="http://opensimulator.org/wiki/OpenSim:Configuration">http://opensimulator.org/wiki/OpenSim:Configuration</a></div><div><br class="webkit-block-placeholder"></div><div><b>Windows</b><div>Create a file called StartGrid.BAT:</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;"> start OpenSim.Grid.UserServer.exe
 sleep 3
 start OpenSim.Grid.GridServer.exe
 sleep 3
 start OpenSim.Grid.AssetServer.exe
 sleep 3
 start OpenSim.Grid.InventoryServer.exe
 sleep 3
 start OpenSim.exe -gridmode=true
</span></font></pre><div>PS! Check that you have sleep command installed, I'm unsure if all Windows versions have that.<br>This knowledgebase article describes how to add a batch file to startup of Windows (before logon).<br><a href="http://support.microsoft.com/kb/q243486/">http://support.microsoft.com/kb/q243486/</a><br>Note that you have to start all applications and answer the configuration questions once before adding it to any startup.<br><br>If you start the server before logon then there will be no window to close if you want to shut down the server, so you can create a "StopGrid.BAT" with:</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">taskkill /FI "IMAGENAME eq OpenSim.*"
sleep 3
taskkill /FI "IMAGENAME eq OpenSim.*"
sleep 3
taskkill /F /FI "IMAGENAME eq OpenSim.*"</span></font></pre><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;"><br class="webkit-block-placeholder"></span></font></pre><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;"><b>Linux/Mac OS X Use Screen Command</b></span></font></pre><div>Use the screen command to automate startup</div>[edit]Setup screen command and setup shell file<div>screen install:</div><div>Linux</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">apt-get install screen
</span></font></pre><div>Mac OS X: Download either MacPorts, <a href="http://www.macports.org/">http://www.macports.org/</a>, or Fink, <a href="http://www.finkproject.org/">http://www.finkproject.org/</a> to download *nix packages MacPorts</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">sudo port install screen
</span></font></pre><div>Fink</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">Need command line for Fink.
</span></font></pre><div>Create file runsim.sh</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">#!/bin/sh
cd opensim/bin
sleep 3
screen -S UserServer -d -m  mono OpenSim.Grid.UserServer.exe
sleep 3
screen -S GridServer -d -m mono OpenSim.Grid.GridServer.exe
sleep 3
screen -S AssetServer -d -m mono OpenSim.Grid.AssetServer.exe
sleep 3
screen -S InventoryServer -d -m mono OpenSim.Grid.InventoryServer.exe
sleep 3
screen -S OpenSim -d -m mono OpenSim.exe -gridmode=true
</span></font></pre>[edit]Startup and access servers<pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">./runsim.sh
</span></font></pre><div>If you have permission issues</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">chmod 755 runsim.sh
</span></font></pre><div>To see a list of the servers in screen:</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">screen -ls or screen -list
</span></font></pre><div>Output will look like the following:</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">There are screens on:
     8419.OpenSim  (Detached)
     8403.InventoryServer  (Detached)
     8378.AssetServer  (Detached)
     8360.GridServer  (Detached)
     8347.UserServer  (Detached)
</span></font></pre><div>To access server</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">screen -r 8419.OpenSim
screen -r 8403.InventoryServer
etc.
</span></font></pre><div>To exit screen, leaving server running, and to return to shell</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">ctrl-a d
</span></font></pre>[edit]Shutdown Servers<div>Either manually access each sceen</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">screen -r 8419.OpenSim
shutdown
</span></font></pre><div>Or use</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">killall mono
</span></font></pre><div>Or</div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: normal;">for i in `ps afxu | grep -i "mono.*OpenSim" | grep -v grep | awk {'print $2'}`; do kill $i; done
</span></font></pre><div>Need to see if there is a way to use a shell script using screen to shutdown servers</div></div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Blessings,</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Scott</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="http://www.scottnorman.com">www.scottnorman.com</a></font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p><p style="margin: 0.0px 0.0px 6.0px 0.0px"><font face="Times" size="3" style="font: 12.0px Times; font-family: Times; "><span class="Apple-style-span" style="font-family: Times; "><span class="Apple-style-span" style="font-family: Times; ">God's covenant of revival fire has fallen upon Orange County, California, so that the Church of Orange County will become one and bring healing, salvation, and redemption to the county, and to take part in the harvest of one billion plus souls into the Kingdom of God. - Scott Norman</span></span></font></p><br class="Apple-interchange-newline"></span></div></span> </div><br><div><div>On Jan 7, 2008, at 11:58 AM, Garth FairChang wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div bgcolor="#ffffff" text="#000000"> Hi and thanks for your replies<br> <br> I feel we need a remote console (similar to games like quake, unreal dedicated servers) to administrate our servers.<br> <br> I see there are remote settings in the  opensim.ini file. how do you use that to contact/control the server?<br> What do the do?<br> <br> Garth FairChang<br> <br> Impalah wrote: <blockquote cite="mid:c5851bcf0801070628y22a66ddet24a1f5355353139f@mail.gmail.com" type="cite">Let me be pessimist about this method... I think (I haven't tried, of course, it's only experience) that you couldn't obtain access to the console in "operation" mode (if you configure the .bat as "interactive" you'll get the starting messages, but anything more). It's almost the same as ANYSRV...  <br>  <br> That's why I ask for the "Linux" guys. I supose in Linux the server is started after Linux boot but I don't know if they have access to the console.<br>  <br> Unless there is some magic way for OS administration without the console we will be very limited in the future for install it into production servers. Tell a SysOp that you need to get your used logged "ad infinitum" in a server and watch his red burning killer eyes.  <br>  <br> Greetings<br>  <br>  <br>  <br>  <div><span class="gmail_quote">2008/1/7, Roger Schreiner <<a moz-do-not-send="true" href="mailto:phillygeekx@gmail.com">phillygeekx@gmail.com</a>>:</span>  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">    <div>Curious to know the reasoning to run this as a service?  If it is nothing more then to have the OS server start when the system reboots without login to the server, instead of running it as a service this can be run through a windows batch file and the NOS can be configured to run the batch file in a maximazed mode at start up prior to login, so it should load as cmd console application and provide you with administration control via this cmd console window. While this doesn't do much good for monitoring a service or restarting an application on failure, it should allow the server to start without intervention on the reboot.  </div>    <div> </div>    <div>Running a batch File before login  =  <a moz-do-not-send="true" href="http://support.microsoft.com/kb/q243486/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://support.microsoft.com/kb/q243486/</a></div>    <div>Creating a batch file =  <a moz-do-not-send="true" href="http://home.att.net/%7Egobruen/progs/dos_batch/dos_batch.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://home.att.net/~gobruen/progs/dos_batch/dos_batch.html    </a><br>    </div>    <div>I haven't tired it but when i find some time i will post a pastebin copy of the code and add the proceedure text when i can find  some time. </div>    <div> </div>    <div>Tworsley</div>    <div><br>  </div>    <div class="gmail_quote">    <div><span class="e" id="q_117545ce2da03a75_1">On Jan 7, 2008 5:38 AM, Impalah <<a moz-do-not-send="true" href="mailto:impalah@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">impalah@gmail.com    </a>> wrote:<br>    </span></div>    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">      <div><span class="e" id="q_117545ce2da03a75_3">You won't have access in any case to the console if you launch OS as a service. OS will need a "configuration service" apart from the console.      <br>      <br> How Linux guys solve this problem??? They must not have access to the console, I supose. <br>      <br>      <br>      <br>      <div><span class="gmail_quote">2008/1/6, Garth FairChang <<a moz-do-not-send="true" href="mailto:garth@fairchang.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">garth@fairchang.com</a>>:</span>      <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">        <div text="#000000" bgcolor="#ffffff">        <div>        <div>Hi and thanks<br>        <br> I have tried that. But after a while OpenSim.exe just seems to close and if I use remote window it is not there.<br>        <br> What do you have the idle time set at on plesk?<br>        <br> Also I found a great application that works with Windows server 2003.  <a moz-do-not-send="true" href="http://www.application-as-service.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.application-as-service.com/</a><br> I am testing the demo 14 day version. Works well but I have no access to the opensim window. It looks like you could load the other opensim servers in order as services before loading Opensim.exe :)<br>        <br> Garth FairChang<br>        <a moz-do-not-send="true" href="http://www.fairchang.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.fairchang.com</a><br>        <br> jean-françois peri wrote: </div>        </div>        <blockquote type="cite">          <div>          <div>          <div><span>Hi          <div><br>          </div>          <div>I have Opensim running on plesk on Windows server 2003 and I have not this problem.</div>          <div>Simply when you leave windows on your local computer dont stop it just click on the cross on the top right of your screen. </div>          <div>Opensim server will continue to run </div>          <div><br>          <div>          <div>Le 5 janv. 08 à 03:37, Impalah a écrit :</div>          <br>          <blockquote type="cite">I haven't tried yet with OS but... <br>            <br>            <a moz-do-not-send="true" href="http://support.microsoft.com/kb/137890" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://support.microsoft.com/kb/137890            </a><br>            <br> ANYSRV, to run any program as a service            <br>            <br>            <br>            <div><span class="gmail_quote">2008/1/5, Garth <<a moz-do-not-send="true" href="mailto:garth@fairchang.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">garth@fairchang.com</a>>:</span>            <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>              <br> Is it possible to run opensim.exe (and the database programs) as a windows<br> service?              <br>              <br> I am using a windows 2003 server and every time I logout of the remote<br> window (in plesk) after a short time the server is gone. <br>              <br> I am guessing it is closing the session.<br>              <br> Garth FairChang<br>              <br> ________________________________________________              <br> Message sent using UebiMiau 2.7.9<br>              <br>              <br> _______________________________________________ <br> Opensim-users mailing list<br>              <a moz-do-not-send="true" href="mailto:Opensim-users@lists.berlios.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Opensim-users@lists.berlios.de              </a><br>              <a moz-do-not-send="true" href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.berlios.de/mailman/listinfo/opensim-users              </a><br>            </blockquote>            </div>            <br> _______________________________________________            <br> Opensim-users mailing list<br>            <a moz-do-not-send="true" href="mailto:Opensim-users@lists.berlios.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Opensim-users@lists.berlios.de</a><br>            <a moz-do-not-send="true" href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.berlios.de/mailman/listinfo/opensim-users            </a><br>          </blockquote>          </div>          <br>          </div>          </span></div>          <pre><hr size="4" width="90%">_______________________________________________
Opensim-users mailing list
<span><a moz-do-not-send="true" href="mailto:Opensim-users@lists.berlios.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Opensim-users@lists.berlios.de

</a>
<a moz-do-not-send="true" href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.berlios.de/mailman/listinfo/opensim-users</a>
  </span></pre>          <pre><hr size="4" width="90%">No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.12/1203 - Release Date: 12/30/2007 11:27 AM
  </pre>          </div>          </div>        </blockquote>        </div>        <br> _______________________________________________        <div><br> Opensim-users mailing list<br>        <a moz-do-not-send="true" href="mailto:Opensim-users@lists.berlios.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Opensim-users@lists.berlios.de</a>        <br>        <a moz-do-not-send="true" href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.berlios.de/mailman/listinfo/opensim-users</a><br>        <br>        </div>      </blockquote>      </div>      <br>      <br>      </span></div> _______________________________________________<span class="q"><br> Opensim-users mailing list<br>      <a moz-do-not-send="true" href="mailto:Opensim-users@lists.berlios.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Opensim-users@lists.berlios.de</a><br>      <a moz-do-not-send="true" href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.berlios.de/mailman/listinfo/opensim-users      </a><br>      <br>      </span></blockquote>    </div>    <br>  </blockquote>  </div>  <br>  <pre wrap=""><hr size="4" width="90%">
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 1/6/2008 10:55 PM
  </pre> </blockquote> <br> </div>  _______________________________________________<br>Opensim-users mailing list<br><a href="mailto:Opensim-users@lists.berlios.de">Opensim-users@lists.berlios.de</a><br>https://lists.berlios.de/mailman/listinfo/opensim-users<br></blockquote></div><br></div></body></html>