mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Hopefully fixed MySQL DB crash on startup issue (so we can remove 3 sec wait).
Added option to try alternate UDP ports if the one configured is in use. UDP packets are now bound to the actual outside IP address and hopefully won't "randomly" select IP on multihomed systems.
This commit is contained in:
@@ -67,7 +67,19 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
System.Console.WriteLine("Logs will be saved to current directory in " + LogFile);
|
||||
|
||||
Log = File.AppendText(LogFile);
|
||||
try
|
||||
{
|
||||
Log = File.AppendText(LogFile);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
System.Console.WriteLine("Unable to open log file. Do you already have another copy of OpenSim running? Permission problem?");
|
||||
System.Console.WriteLine(ex.Message);
|
||||
System.Console.WriteLine("");
|
||||
System.Console.WriteLine("Application is terminating.");
|
||||
System.Console.WriteLine("");
|
||||
System.Threading.Thread.CurrentThread.Abort();
|
||||
}
|
||||
Log.WriteLine("========================================================================");
|
||||
Log.WriteLine(componentname + " Started at " + DateTime.Now.ToString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user