diff options
author | Melanie | 2013-06-23 01:59:57 +0100 |
---|---|---|
committer | Melanie | 2013-06-23 01:59:57 +0100 |
commit | f70357eaa355b8c152f3d793d0fceafa14df5fd4 (patch) | |
tree | ffda32c340bd7f6d69652e9d9a959c7396f42a2f /OpenSim/Server/Base/ServicesServerBase.cs | |
parent | Merge branch 'avination-current' into careminster (diff) | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-f70357eaa355b8c152f3d793d0fceafa14df5fd4.zip opensim-SC-f70357eaa355b8c152f3d793d0fceafa14df5fd4.tar.gz opensim-SC-f70357eaa355b8c152f3d793d0fceafa14df5fd4.tar.bz2 opensim-SC-f70357eaa355b8c152f3d793d0fceafa14df5fd4.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Framework/Monitoring/BaseStatsCollector.cs
OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Base/ServicesServerBase.cs | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/OpenSim/Server/Base/ServicesServerBase.cs b/OpenSim/Server/Base/ServicesServerBase.cs index b13c87d..667cef8 100644 --- a/OpenSim/Server/Base/ServicesServerBase.cs +++ b/OpenSim/Server/Base/ServicesServerBase.cs | |||
@@ -34,6 +34,7 @@ using System.Text; | |||
34 | using System.Xml; | 34 | using System.Xml; |
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
36 | using OpenSim.Framework.Console; | 36 | using OpenSim.Framework.Console; |
37 | using OpenSim.Framework.Monitoring; | ||
37 | using OpenSim.Framework.Servers; | 38 | using OpenSim.Framework.Servers; |
38 | using log4net; | 39 | using log4net; |
39 | using log4net.Config; | 40 | using log4net.Config; |
@@ -190,16 +191,7 @@ namespace OpenSim.Server.Base | |||
190 | } | 191 | } |
191 | 192 | ||
192 | RegisterCommonCommands(); | 193 | RegisterCommonCommands(); |
193 | 194 | RegisterCommonComponents(Config); | |
194 | // Register the quit command | ||
195 | // | ||
196 | MainConsole.Instance.Commands.AddCommand("General", false, "quit", | ||
197 | "quit", | ||
198 | "Quit the application", HandleQuit); | ||
199 | |||
200 | MainConsole.Instance.Commands.AddCommand("General", false, "shutdown", | ||
201 | "shutdown", | ||
202 | "Quit the application", HandleQuit); | ||
203 | 195 | ||
204 | // Allow derived classes to perform initialization that | 196 | // Allow derived classes to perform initialization that |
205 | // needs to be done after the console has opened | 197 | // needs to be done after the console has opened |
@@ -214,6 +206,9 @@ namespace OpenSim.Server.Base | |||
214 | 206 | ||
215 | public virtual int Run() | 207 | public virtual int Run() |
216 | { | 208 | { |
209 | Watchdog.Enabled = true; | ||
210 | MemoryWatchdog.Enabled = true; | ||
211 | |||
217 | while (m_Running) | 212 | while (m_Running) |
218 | { | 213 | { |
219 | try | 214 | try |
@@ -231,11 +226,12 @@ namespace OpenSim.Server.Base | |||
231 | return 0; | 226 | return 0; |
232 | } | 227 | } |
233 | 228 | ||
234 | protected virtual void HandleQuit(string module, string[] args) | 229 | protected override void ShutdownSpecific() |
235 | { | 230 | { |
236 | m_Running = false; | 231 | m_Running = false; |
237 | m_log.Info("[CONSOLE] Quitting"); | 232 | m_log.Info("[CONSOLE] Quitting"); |
238 | 233 | ||
234 | base.ShutdownSpecific(); | ||
239 | } | 235 | } |
240 | 236 | ||
241 | protected virtual void ReadConfig() | 237 | protected virtual void ReadConfig() |
@@ -246,4 +242,4 @@ namespace OpenSim.Server.Base | |||
246 | { | 242 | { |
247 | } | 243 | } |
248 | } | 244 | } |
249 | } | 245 | } \ No newline at end of file |