Add a PIDFile in [Startup], which the PID will be written to

This commit is contained in:
Melanie Thielker
2009-04-01 12:13:42 +00:00
parent 1a25969096
commit 76ca096384
3 changed files with 48 additions and 1 deletions

View File

@@ -188,6 +188,14 @@ namespace OpenSim
/// </summary>
protected override void StartupSpecific()
{
IConfig startupConfig = m_config.Source.Configs["Startup"];
if (startupConfig != null)
{
string pidFile = startupConfig.GetString("PIDFile", String.Empty);
if (pidFile != String.Empty)
CreatePIDFile(pidFile);
}
base.StartupSpecific();
m_stats = StatsManager.StartCollectingSimExtraStats();
@@ -857,4 +865,4 @@ namespace OpenSim
}
}
}
}
}