AutoSave&Restart v1 - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html) +--- Thread: AutoSave&Restart v1 (/thread-864.html) |
RE: AutoSave&Restart v1 - tonibm19 - 04-26-2014 I found how to execute OS commands in lua, so I can rewritte this to execute a restart sh script on disable and make the plugin usefull, because this way you get free ram. RE: AutoSave&Restart v1 - tigerw - 04-26-2014 Free RAM? I think you get it from here: http://www.downloadmoreram.com/ RE: AutoSave&Restart v1 - xoft - 04-26-2014 The main problem with this is that the server can't really be stopped from anywhere else than its console. This hasn't been fixed, unfortunately, so even if you execute any termination commands from a plugin, the input thread will still keep the server alive (and will crash later on). RE: AutoSave&Restart v1 - tonibm19 - 04-26-2014 Executing stop command in a plugin doesn't work? Well, I could save-all and pkill MCServer, maybe. RE: AutoSave&Restart v1 - xoft - 04-26-2014 I haven't tested recently, but I expect it not to work. This is because there's a special thread for reading the server console input, and that thread is waiting for the input, so it cannot be stopped externally in any other way than killing it. If you save-all and kill the server, you might cause connected players to lose their data, because those are saved only when the players disconnect. RE: AutoSave&Restart v1 - tonibm19 - 04-26-2014 And on kick? RE: AutoSave&Restart v1 - xoft - 04-26-2014 yes, kick is a disconnect as well. if you kick the players, they will be saved. |