diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Region/RestartModule.cs | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index 39cc93d..757e5d4 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -271,6 +271,10 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
271 | } | 271 | } |
272 | 272 | ||
273 | restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true); | 273 | restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true); |
274 | |||
275 | m_log.InfoFormat( | ||
276 | "User {0} requested restart of region {1} in {2} seconds", | ||
277 | remoteClient.Name, Scene.Name, times.Count != 0 ? times[0] : 0); | ||
274 | } | 278 | } |
275 | } | 279 | } |
276 | 280 | ||
diff --git a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs index fea4de0..249a40d 100644 --- a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs +++ b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Linq; | ||
29 | using System.Reflection; | 30 | using System.Reflection; |
30 | using System.Timers; | 31 | using System.Timers; |
31 | using System.Threading; | 32 | using System.Threading; |
@@ -264,7 +265,10 @@ namespace OpenSim.Region.CoreModules.World.Region | |||
264 | for (int i = 4 ; i < args.Length ; i++) | 265 | for (int i = 4 ; i < args.Length ; i++) |
265 | times.Add(Convert.ToInt32(args[i])); | 266 | times.Add(Convert.ToInt32(args[i])); |
266 | 267 | ||
268 | MainConsole.Instance.OutputFormat( | ||
269 | "Region {0} scheduled for restart in {1} seconds", m_Scene.Name, times.Sum()); | ||
270 | |||
267 | ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice); | 271 | ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice); |
268 | } | 272 | } |
269 | } | 273 | } |
270 | } | 274 | } \ No newline at end of file |