[Opensim-dev] execute shutdown command automatically
Dirk Krause
dirk.krause at pixelpark.com
Fri Jun 25 18:03:34 UTC 2010
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: opensim-dev-bounces at lists.berlios.de im Auftrag von Justin Clark-Casey
Gesendet: Fr 25.06.2010 19:39
An: opensim-dev at lists.berlios.de
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
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3673 bytes
Desc: not available
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20100625/6a23bd18/attachment-0001.bin>
More information about the Opensim-dev
mailing list