Add gryc's patch to run commands in a shutdown_commands.txt file when the sim is shutdown. A config setting has also been added to OpenSim.ini. Thank you very much, gryc.
parent
fc9f0267ab
commit
884edac78e
|
@ -68,6 +68,7 @@ namespace OpenSim
|
||||||
protected string m_storageDLL = "OpenSim.DataStore.NullStorage.dll";
|
protected string m_storageDLL = "OpenSim.DataStore.NullStorage.dll";
|
||||||
|
|
||||||
protected string m_startupCommandsFile = "";
|
protected string m_startupCommandsFile = "";
|
||||||
|
protected string m_shutdownCommandsFile = "";
|
||||||
|
|
||||||
protected List<UDPServer> m_udpServers = new List<UDPServer>();
|
protected List<UDPServer> m_udpServers = new List<UDPServer>();
|
||||||
protected List<RegionInfo> m_regionData = new List<RegionInfo>();
|
protected List<RegionInfo> m_regionData = new List<RegionInfo>();
|
||||||
|
@ -119,6 +120,7 @@ namespace OpenSim
|
||||||
m_storageDLL = configSource.Configs["Startup"].GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll");
|
m_storageDLL = configSource.Configs["Startup"].GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll");
|
||||||
|
|
||||||
m_startupCommandsFile = configSource.Configs["Startup"].GetString("startup_console_commands_file", "");
|
m_startupCommandsFile = configSource.Configs["Startup"].GetString("startup_console_commands_file", "");
|
||||||
|
m_shutdownCommandsFile = configSource.Configs["Startup"].GetString("shutdown_console_commands_file", "");
|
||||||
|
|
||||||
m_scriptEngine = configSource.Configs["Startup"].GetString("script_engine", "DotNetEngine");
|
m_scriptEngine = configSource.Configs["Startup"].GetString("script_engine", "DotNetEngine");
|
||||||
|
|
||||||
|
@ -343,6 +345,11 @@ namespace OpenSim
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void Shutdown()
|
public virtual void Shutdown()
|
||||||
{
|
{
|
||||||
|
if (m_startupCommandsFile != "")
|
||||||
|
{
|
||||||
|
RunCommandScript(m_shutdownCommandsFile);
|
||||||
|
}
|
||||||
|
|
||||||
m_log.Verbose("Closing all threads");
|
m_log.Verbose("Closing all threads");
|
||||||
m_log.Verbose("Killing listener thread");
|
m_log.Verbose("Killing listener thread");
|
||||||
m_log.Verbose("Killing clients");
|
m_log.Verbose("Killing clients");
|
||||||
|
|
|
@ -7,6 +7,7 @@ physics = basicphysics
|
||||||
storage_plugin = "OpenSim.DataStore.MonoSqlite.dll"
|
storage_plugin = "OpenSim.DataStore.MonoSqlite.dll"
|
||||||
;storage_plugin = "OpenSim.DataStore.NullStorage.dll"
|
;storage_plugin = "OpenSim.DataStore.NullStorage.dll"
|
||||||
startup_console_commands_file = "startup_commands.txt"
|
startup_console_commands_file = "startup_commands.txt"
|
||||||
|
shutdown_console_commands_file = "shutdown_commands.txt"
|
||||||
serverside_object_permissions = false
|
serverside_object_permissions = false
|
||||||
|
|
||||||
; asset_database = "db4o"
|
; asset_database = "db4o"
|
||||||
|
@ -38,3 +39,4 @@ user_recv_key = "null"
|
||||||
|
|
||||||
asset_server_url = "http://127.0.0.1:8003"
|
asset_server_url = "http://127.0.0.1:8003"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
backup
|
Loading…
Reference in New Issue