aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2009-12-14 00:31:15 +0000
committerMelanie2009-12-14 00:31:15 +0000
commitc426549f53cb08ab2d55770cc498faa6f94bf66e (patch)
treee4f2fc2a7a7682d6c988fce79ead86654fd82d00
parent* Bugfix mantis 4441, "Use of Autopilot isn't playing any animations." (diff)
downloadopensim-SC-c426549f53cb08ab2d55770cc498faa6f94bf66e.zip
opensim-SC-c426549f53cb08ab2d55770cc498faa6f94bf66e.tar.gz
opensim-SC-c426549f53cb08ab2d55770cc498faa6f94bf66e.tar.bz2
opensim-SC-c426549f53cb08ab2d55770cc498faa6f94bf66e.tar.xz
Add an option to exit an instance rather than restarting a region within it
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs13
-rw-r--r--bin/OpenSim.ini.example10
2 files changed, 21 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a22fb5f..4241b20 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -902,7 +902,7 @@ namespace OpenSim.Region.Framework.Scenes
902 m_log.Info("[REGION]: Restarting Region in " + (seconds / 60) + " minutes"); 902 m_log.Info("[REGION]: Restarting Region in " + (seconds / 60) + " minutes");
903 m_restartTimer.Start(); 903 m_restartTimer.Start();
904 m_dialogModule.SendNotificationToUsersInRegion( 904 m_dialogModule.SendNotificationToUsersInRegion(
905 UUID.Random(), String.Empty, RegionInfo.RegionName + ": Restarting in 2 Minutes"); 905 UUID.Random(), String.Empty, RegionInfo.RegionName + String.Format(": Restarting in {0} Minutes", (int)(seconds / 60.0)));
906 } 906 }
907 } 907 }
908 908
@@ -932,6 +932,16 @@ namespace OpenSim.Region.Framework.Scenes
932 // This causes the region to restart immediatley. 932 // This causes the region to restart immediatley.
933 public void RestartNow() 933 public void RestartNow()
934 { 934 {
935 IConfig startupConfig = m_config.Configs["Startup"];
936 if (startupConfig != null)
937 {
938 if (startupConfig.GetBoolean("InworldRestartShutsDown", false))
939 {
940 MainConsole.Instance.RunCommand("shutdown");
941 return;
942 }
943 }
944
935 if (PhysicsScene != null) 945 if (PhysicsScene != null)
936 { 946 {
937 PhysicsScene.Dispose(); 947 PhysicsScene.Dispose();
@@ -939,6 +949,7 @@ namespace OpenSim.Region.Framework.Scenes
939 949
940 m_log.Error("[REGION]: Closing"); 950 m_log.Error("[REGION]: Closing");
941 Close(); 951 Close();
952
942 m_log.Error("[REGION]: Firing Region Restart Message"); 953 m_log.Error("[REGION]: Firing Region Restart Message");
943 base.Restart(0); 954 base.Restart(0);
944 } 955 }
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example
index 4351b3f..1cf96b0 100644
--- a/bin/OpenSim.ini.example
+++ b/bin/OpenSim.ini.example
@@ -107,7 +107,15 @@
107 ; Combine all contiguous regions into one large region 107 ; Combine all contiguous regions into one large region
108 ; Order your regions from South to North, West to East in your regions.ini and then set this to true 108 ; Order your regions from South to North, West to East in your regions.ini and then set this to true
109 ; Warning! Don't use this with regions that have existing content!, This will likely break them 109 ; Warning! Don't use this with regions that have existing content!, This will likely break them
110 CombineContiguousRegions=false 110 CombineContiguousRegions = false
111
112 ; If you have only one region in an instance, or to avoid the many bugs
113 ; that you can trigger in modules by restarting a region, set this to
114 ; true to make the entire instance exit instead of restarting the region.
115 ; This is meant to be used on systems where some external system like
116 ; Monit will restart any instance that exits, thereby making the shutdown
117 ; into a restart.
118 ;InworldRestartShutsDown = false
111 119
112 ; ## 120 ; ##
113 ; ## STORAGE 121 ; ## STORAGE