1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using System.Reflection;
- using System.Threading;
- using log4net;
- using Nini.Config;
- namespace OpenSim
- {
-
-
-
- public class OpenSimBackground : OpenSim
- {
- private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private ManualResetEvent WorldHasComeToAnEnd = new ManualResetEvent(false);
- public OpenSimBackground(IConfigSource configSource) : base(configSource)
- {
- }
-
-
-
- public override void Startup()
- {
- m_gui = false;
- base.Startup();
- m_log.InfoFormat("[OPENSIM MAIN]: Startup complete, serving {0} region{1}",
- m_clientServers.Count.ToString(), m_clientServers.Count > 1 ? "s" : "");
- WorldHasComeToAnEnd.WaitOne();
- WorldHasComeToAnEnd.Close();
- }
-
-
-
- public override void Shutdown()
- {
- WorldHasComeToAnEnd.Set();
- m_log.Info("[OPENSIM MAIN]: World has come to an end");
- base.Shutdown();
- }
- }
- }
|