another way could be to do it 'from the outside'.

write a script that utilizes the webservice (you have to activate it first) and 
write a little script (for example in python) that counts the numbers of users 
in the region.

If this drops to zero, then call "admin_shutdown"

further info:
  http://opensimulator.org/wiki/RemoteAdmin

  http://xyzzyxyzzy.net/2009/05/11/using-the-regioninfo-rest-call/

  http://xyzzyxyzzy.net/2008/01/23/using-pythons-xmlrpclib-with-opensim/

I also learned that RESTful interfaces seem to be working, so this might be 
even easier:
http://opensimulator.org/wiki/RestConsole

-- Dirk


-----Ursprüngliche Nachricht-----
Von: [email protected] im Auftrag von Justin Clark-Casey
Gesendet: Fr 25.06.2010 19:39
An: [email protected]
Betreff: Re: [Opensim-dev] execute shutdown command automatically
 
On 24/06/10 17:49, Alberto Tapioles wrote:
> Hi everybody!
> First of all, i'm Tapi, and a user of OpenSim.
> I would like to know how to execute the shutdown command automatically.
> When the user closes the client viewer (for example SL) in the opensim
> console, the [CLIENT] got a logout request for that user and more
> messages about that the user is getting out of Opensim, so how can i
> execute the shutdown command automatically when this happens??
> Because i need kill the application when the user does logout.
> Thanks in advance.

There's no easy scripting way to do this.  In principle, one could write a 
module to count the number of root agents in 
the region and execute the Shutdown() method on the OpenSim server.  This would 
require writing c# code.

-- 
Justin Clark-Casey (justincc)
http://justincc.org
http://twitter.com/justincc
_______________________________________________
Opensim-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-dev

<<winmail.dat>>

_______________________________________________
Opensim-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-dev

Reply via email to