mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* Move most bookending startup/shutdown messages to BaseOpenSimServer so they appear in non-console servers too
This commit is contained in:
@@ -74,21 +74,20 @@ namespace OpenSim.Framework.Servers
|
||||
/// Performs initialisation of the scene, such as loading configuration from disk.
|
||||
/// </summary>
|
||||
public virtual void Startup()
|
||||
{
|
||||
{
|
||||
m_log.Info("[STARTUP]: Beginning startup processing");
|
||||
|
||||
EnhanceVersionInformation();
|
||||
|
||||
m_log.Info("[STARTUP]: Version " + m_version + "\n");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Should be overriden by descendents if they need to perform extra shutdown processing
|
||||
/// Should be overriden and referenced by descendents if they need to perform extra shutdown processing
|
||||
/// </summary>
|
||||
public virtual void Shutdown()
|
||||
{
|
||||
if (m_console != null)
|
||||
{
|
||||
m_console.Close();
|
||||
}
|
||||
{
|
||||
m_log.Info("[SHUTDOWN]: Shutdown processing on main thread complete. Exiting...");
|
||||
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user