I have my 3 rust servers to automatically restart @ specific times ~ every 12 hours with warning and such and while i had only 1 server the restarter i was previously using would just restart the rustserver.bat when it closed down , now that we are running multiple servers the restarter wont detect that it has closed while the other server is still running and so the server will remain down. does anyone have a .bat script to auto reboot servers once the "restart" console command is issued?
Solved Auto restarting multiple servers?
Discussion in 'Rust Discussion' started by Richard 3, Aug 16, 2016.
-
Wulf Community Admin
The example .bat that comes with Oxide handles restarting the server when closed.
-
Plugin :
Timed Execute for Rust
Timed Execute Config:
Code:{ "EnabledRealTime-Timer": true, "EnableTimerOnce": false, "EnableTimerRepeat": false, "EnableTimerRepeat": false, "RealTime-Timer": { "01:00:00": "say 'THE SERVER WILL BE RESTARTING IN 1 HOUR'", "01:30:00": "say 'THE SERVER WILL BE RESTARTING IN 30 MINUTES'", "01:50:00": "say 'THE SERVER WILL BE RESTARTING IN 10 MINUTES'", "01:55:00": "say 'THE SERVER WILL BE RESTARTING IN 5 MINUTES'", "01:56:00": "say 'THE SERVER WILL BE RESTARTING IN 4 MINUTES'", "01:57:00": "say 'THE SERVER WILL BE RESTARTING IN 3 MINUTES'", "01:58:00": "say 'THE SERVER WILL BE RESTARTING IN 2 MINUTES'", "01:59:00": "say 'THE SERVER WILL BE RESTARTING IN 1 MINUTE!'", "01:59:00": "say 'LOG OUT NOW TO PREVENT LOSING GEAR!'", "01:59:00": "server.save", "02:00:00": "quit", "12:00:00": "say 'THE SERVER WILL BE RESTARTING IN 1 HOUR'", "12:30:00": "say 'THE SERVER WILL BE RESTARTING IN 30 MINUTES'", "12:50:00": "say 'THE SERVER WILL BE RESTARTING IN 10 MINUTES'", "12:55:00": "say 'THE SERVER WILL BE RESTARTING IN 5 MINUTES'", "12:56:00": "say 'THE SERVER WILL BE RESTARTING IN 4 MINUTES'", "12:57:00": "say 'THE SERVER WILL BE RESTARTING IN 3 MINUTES'", "12:58:00": "say 'THE SERVER WILL BE RESTARTING IN 2 MINUTES'", "12:59:00": "say 'THE SERVER WILL BE RESTARTING IN 1 MINUTE!'", "12:59:00": "say 'LOG OUT NOW TO PREVENT LOSING GEAR!'", "12:59:00": "server.save", "13:00:00": "quit" }, "TimerOnce": { }, "TimerRepeat": { } }
my serverstart.bat:
Code:@echo offcls :startecho Starting server...RustDedicated.exe -batchmode -nographics +server.ip 0.0.0.0 +rcon.ip 0.0.0.0 +server.port 28015 +rcon.port 28016 +rcon.password "changeme" +server.maxplayers 10 +server.hostname "My Oxide Server" +server.identity "my_server_identity" +server.level "Procedural Map" +server.seed 12345 +server.worldsize 4000 +server.saveinterval 300 +server.globalchat true +server.description "Powered by Oxide" +server.headerimage "http://oxidemod.org/styles/oxide/logo.png" +server.url "http://oxidemod.org"echo.echo Restarting server...echo.goto start