MantisBT - opensim
View Issue Details
0005602opensim[REGION] Specific OpenSim Modulepublic2011-07-22 14:442018-09-26 12:08
Michelle Argus 
 
normalfeatureN/A
patch feedbackopen 
master (dev code) 
 
6ac0bc72592b5fe338c98d3acfc973faed321d14
Standalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
BasicPhysics
Unknown
None
0005602: [PATCH] RegionReady - Adding shutdown notification when using alert_uri
Adding a patch which sends a "region_shutdown" message when regions get removed from the Simulator.

 To enable RegionReady to send a message to web, one needs to set enable_alert_shutdown = true in the RegionReady modul settings in the ini. On region shutdown the alert message will be region_shutdown instead of region_ready
I did not add the option to send the region shutdown notification to inworld scripts, as the region already has started the shutdown process...
No tags attached.
txt 001-Patch adding region shutdown to RegionReady Module.txt (3,865) 2011-07-22 14:44
http://opensimulator.org/mantis/file_download.php?file_id=2736&type=bug
Issue History
2011-07-22 14:44Michelle ArgusNew Issue
2011-07-22 14:44Michelle ArgusFile Added: 001-Patch adding region shutdown to RegionReady Module.txt
2011-07-22 14:44Michelle ArgusGit Revision => 6ac0bc72592b5fe338c98d3acfc973faed321d14
2011-07-22 14:44Michelle ArgusRun Mode => Standalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
2011-07-22 14:44Michelle ArgusPhysics Engine => BasicPhysics
2011-07-22 14:44Michelle ArgusEnvironment => Unknown
2011-07-22 14:44Michelle ArgusMono Version => None
2011-07-22 14:44Michelle ArgusStatusnew => patch included
2011-07-22 14:47BlueWallNote Added: 0019033
2011-07-22 15:05Michelle ArgusNote Added: 0019034
2011-07-22 15:07Michelle ArgusNote Edited: 0019034
2011-07-22 15:13BlueWallNote Added: 0019037
2011-07-22 15:44Michelle ArgusNote Added: 0019038
2011-07-22 15:44Michelle ArgusNote Edited: 0019038
2011-08-15 13:28BlueWallNote Added: 0019602
2018-07-27 11:58Fly-Man-SummaryReagionReady - Adding shutdown notification when using alert_uri => RegionReady - Adding shutdown notification when using alert_uri
2018-07-27 11:59Fly-Man-Note Added: 0032839
2018-07-27 11:59Fly-Man-Statuspatch included => patch feedback
2018-09-26 07:32Fly-Man-SummaryRegionReady - Adding shutdown notification when using alert_uri => [PATCH] RegionReady - Adding shutdown notification when using alert_uri
2018-09-26 12:08BillBlightNote Added: 0033077

Notes
(0019033)
BlueWall   
2011-07-22 14:47   
Does this relate to 0005600 in any way?
(0019034)
Michelle Argus   
2011-07-22 15:05   
(edited on: 2011-07-22 15:07)
no, its not related.

 One still could test if this additional function also gets triggert if a regions location already is occupied... I will test that later ;)

btw... as a c# noob I was not able to fix 005600... but this patch was easy again, hehe

(0019037)
BlueWall   
2011-07-22 15:13   
I'll be looking at 005600, so I'll add this too.

Thanks!
(0019038)
Michelle Argus   
2011-07-22 15:44   
np

I tested if the shutdown also gets triggered when a sim closes due to overlapping regions. It does not trigger the shutdown. This also aplys for a crash of a sim were the application is terminated.

I also tested a region shutdown using RemoteAdmin. RemoteAdmin does trigger the shutdown message in this patch. All normal region shutdowns should be triggering the message in this patch...

(0019602)
BlueWall   
2011-08-15 13:28   
I added the shutdown message to the module, but didn't apply the whole patch. We have several status/monitoring systems in OpenSim. I would like to look at them more to see if we might consolidate some of them instead of growing each one separately.

Thanks!
BlueWall
(0032839)
Fly-Man-   
2018-07-27 11:59   
The question I have, is there a reason why we haven't applied the full patch so a region script can prepare things for a shutdown ?

A script that would store the shutdown would be one of those things
(0033077)
BillBlight   
2018-09-26 12:08   
I'd say most likely Fly-Man, because there is no way to tell it to wait till that "shutdown script" finishes before the shutdown proceeds ..

I mean you start shutdown , shutdown script says "Here we go". on fast server region kills the script before it finishes, and now you have incomplete whatever data you wanted to save.