aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorroot2019-03-11 23:37:53 +0000
committerroot2019-03-11 23:37:53 +0000
commite877c94b514d942158d01f784bbbb9b7a4a36157 (patch)
treee5c8ead6241cd3be51feb06bbef0c7a9ed0eeabd /OpenSim/Region/Framework
parentAllow anyone to get a CAP to the console - check rights on use (diff)
downloadopensim-SC-e877c94b514d942158d01f784bbbb9b7a4a36157.zip
opensim-SC-e877c94b514d942158d01f784bbbb9b7a4a36157.tar.gz
opensim-SC-e877c94b514d942158d01f784bbbb9b7a4a36157.tar.bz2
opensim-SC-e877c94b514d942158d01f784bbbb9b7a4a36157.tar.xz
Add a but more status info on marker files
Diffstat (limited to 'OpenSim/Region/Framework')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 0312262..7668a87 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1775,6 +1775,30 @@ namespace OpenSim.Region.Framework.Scenes
1775 1775
1776 // Region ready should always be set 1776 // Region ready should always be set
1777 Ready = true; 1777 Ready = true;
1778
1779
1780 IConfig restartConfig = m_config.Configs["RestartModule"];
1781 if (restartConfig != null)
1782 {
1783 string markerPath = restartConfig.GetString("MarkerPath", String.Empty);
1784
1785 if (markerPath != String.Empty)
1786 {
1787 string path = Path.Combine(markerPath, RegionInfo.RegionID.ToString() + ".ready");
1788 try
1789 {
1790 string pidstring = System.Diagnostics.Process.GetCurrentProcess().Id.ToString();
1791 FileStream fs = File.Create(path);
1792 System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
1793 Byte[] buf = enc.GetBytes(pidstring);
1794 fs.Write(buf, 0, buf.Length);
1795 fs.Close();
1796 }
1797 catch (Exception)
1798 {
1799 }
1800 }
1801 }
1778 } 1802 }
1779 else 1803 else
1780 { 1804 {