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

@@ -180,9 +180,10 @@ namespace OpenSim.Server.Base
RegisterCommonAppenders(startupConfig);
LogEnvironmentInformation();
if (startupConfig.GetString("PIDFile", String.Empty) != String.Empty)
string pidfile = startupConfig.GetString("PIDFile", string.Empty);
if (pidfile.Length > 0)
{
CreatePIDFile(startupConfig.GetString("PIDFile"));
CreatePIDFile(pidfile);
}
RegisterCommonCommands();