diff options
author | Melanie Thielker | 2009-04-01 12:13:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-04-01 12:13:42 +0000 |
commit | 76ca0963847d75d2d7233ad965c74e50a09d6dce (patch) | |
tree | 12412cb66c3974abb79096901825c7a2065c24e7 /OpenSim/Region | |
parent | * MRM Adjustments (diff) | |
download | opensim-SC_OLD-76ca0963847d75d2d7233ad965c74e50a09d6dce.zip opensim-SC_OLD-76ca0963847d75d2d7233ad965c74e50a09d6dce.tar.gz opensim-SC_OLD-76ca0963847d75d2d7233ad965c74e50a09d6dce.tar.bz2 opensim-SC_OLD-76ca0963847d75d2d7233ad965c74e50a09d6dce.tar.xz |
Add a PIDFile in [Startup], which the PID will be written to
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 10 |
1 files changed, 9 insertions, 1 deletions
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 | |||
188 | /// </summary> | 188 | /// </summary> |
189 | protected override void StartupSpecific() | 189 | protected override void StartupSpecific() |
190 | { | 190 | { |
191 | IConfig startupConfig = m_config.Source.Configs["Startup"]; | ||
192 | if (startupConfig != null) | ||
193 | { | ||
194 | string pidFile = startupConfig.GetString("PIDFile", String.Empty); | ||
195 | if (pidFile != String.Empty) | ||
196 | CreatePIDFile(pidFile); | ||
197 | } | ||
198 | |||
191 | base.StartupSpecific(); | 199 | base.StartupSpecific(); |
192 | 200 | ||
193 | m_stats = StatsManager.StartCollectingSimExtraStats(); | 201 | m_stats = StatsManager.StartCollectingSimExtraStats(); |
@@ -857,4 +865,4 @@ namespace OpenSim | |||
857 | } | 865 | } |
858 | } | 866 | } |
859 | } | 867 | } |
860 | } \ No newline at end of file | 868 | } |