get PID from Environment.ProcessId

This commit is contained in:
UbitUmarov
2024-11-30 21:11:03 +00:00
parent e1dd994f2d
commit a3a64c3a68
3 changed files with 8 additions and 7 deletions

View File

@@ -226,11 +226,11 @@ namespace OpenSim
throw new Exception("CombineContiguousRegions not suported");
}
string pidFile = startupConfig.GetString("PIDFile", String.Empty);
if (pidFile != String.Empty)
string pidFile = startupConfig.GetString("PIDFile", string.Empty);
if (pidFile.Length > 0)
CreatePIDFile(pidFile);
userStatsURI = startupConfig.GetString("Stats_URI", String.Empty);
userStatsURI = startupConfig.GetString("Stats_URI", string.Empty);
m_securePermissionsLoading = startupConfig.GetBoolean("SecurePermissionsLoading", true);
@@ -355,7 +355,7 @@ namespace OpenSim
// Sure is not the right place for this but do the job...
// Must always be called before (all) / the HTTP servers starting for the Certs creation or renewals.
if(startupConfig.GetBoolean("EnableSelfsignedCertSupport", false))
if (startupConfig.GetBoolean("EnableSelfsignedCertSupport", false))
{
if(!File.Exists("SSL\\ssl\\"+ startupConfig.GetString("CertFileName") +".p12") || startupConfig.GetBoolean("CertRenewOnStartup"))
{