From 76ca0963847d75d2d7233ad965c74e50a09d6dce Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 1 Apr 2009 12:13:42 +0000 Subject: Add a PIDFile in [Startup], which the PID will be written to --- OpenSim/Region/Application/OpenSimBase.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application/OpenSimBase.cs') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index ffabdd8..4cdb074 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -188,6 +188,14 @@ namespace OpenSim /// 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 } } } -} \ No newline at end of file +} -- cgit v1.1