diff --git a/OpenSim/Server/ServerMain.cs b/OpenSim/Server/ServerMain.cs index ff2e9dd4bb..cc10a67392 100644 --- a/OpenSim/Server/ServerMain.cs +++ b/OpenSim/Server/ServerMain.cs @@ -29,8 +29,10 @@ using Nini.Config; using log4net; using System.Reflection; using System; +using System.IO; using System.Net; using System.Net.Security; +using System.Runtime; using System.Security.Cryptography.X509Certificates; using System.Collections.Generic; using OpenSim.Framework; @@ -73,6 +75,25 @@ namespace OpenSim.Server return false; } + /// + /// Opens a file and uses it as input to the console command parser. + /// + /// name of file to use as input to the console + private static void PrintFileToConsole(string fileName) + { + if (File.Exists(fileName)) + { + using(StreamReader readFile = File.OpenText(fileName)) + { + string currentLine; + while ((currentLine = readFile.ReadLine()) != null) + { + m_log.InfoFormat("[!]" + currentLine); + } + } + } + } + public static int Main(string[] args) { Culture.SetCurrentCulture(); @@ -190,6 +211,8 @@ namespace OpenSim.Server } } + PrintFileToConsole("startuplogo_server.txt"); + loader = new PluginLoader(m_Server.Config, registryLocation); int res = m_Server.Run(); diff --git a/bin/startuplogo_server.txt b/bin/startuplogo_server.txt new file mode 100644 index 0000000000..e69de29bb2