mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
If OpenSimulator is writing a PID file and finds the file already present on startup, logging an error since this is commonly due to an unclean shutdown.
Unclean shutdown can cause constantly moving objects to disappear if an OAR has just been loaded and they have not reached persistence time threshold, among other problems.
This commit is contained in:
@@ -76,6 +76,11 @@ namespace OpenSim.Framework.Servers
|
||||
|
||||
protected void CreatePIDFile(string path)
|
||||
{
|
||||
if (File.Exists(path))
|
||||
m_log.ErrorFormat(
|
||||
"[SERVER BASE]: Previous pid file {0} still exists on startup. Possibly previously unclean shutdown.",
|
||||
path);
|
||||
|
||||
try
|
||||
{
|
||||
string pidstring = System.Diagnostics.Process.GetCurrentProcess().Id.ToString();
|
||||
|
||||
Reference in New Issue
Block a user