(I'm looking for a tool, not a plugin) I know there are plugins/batch files that work together to achieve this after some configuring. However I've recently had some trouble setting my server up using the Restart batch, and TimeExecute plugin.
Just wondering if anyone can create a semi-basic, quick tool so owners have a GUI to work with that owners can set custom restart scheduling. (I do realize that RustAdmin can do this if you add a times command but you have to keep the program running 24/7 which adds some not needed lag to a server to a point)
I would love to hear some feedback on if this is even a good idea or if I'm just misunderstanding how to set up a auto restart. Thanks
Server restart tool?
Discussion in 'Rust Discussion' started by LoneSurvivor, May 2, 2017.
-
Wulf Community Admin
There is a plugin called Smooth Restarter that should work just fine. This section is for plugins only though.
-
And the only reason I posted this here was because there wasn't a location for tool request or something -
-
I use Smooth Restarter without any problems, when I get home Ill send the .bat script I use
Smooth Restarter ---> Smooth Restarter for Rust | Oxide -
-
RustDedicated_Start.cmd
Code:@echo off setlocal EnableDelayedExpansion title Rust Dedicated Server :start set RustParams= for /f "tokens=*" %%a in (RustDedicated_Settings.txt) do ( set RustParams=!RustParams! %%a ) echo Starting server... RustDedicated.exe %RustParams%echo.echo Restarting server...timeout /t 10echo.goto start
Code:-batchmode -nographics +server.ip 0.0.0.0 +rcon.ip 0.0.0.0 +server.port 28015 +rcon.port 28016 +rcon.password "" +server.maxplayers 200 +server.hostname "" +server.identity "RustServer" +server.level "Procedural Map" +server.seed 1 +server.worldsize 4000 +server.saveinterval 300 +server.description "" +server.headerimage "" +server.url "" +spawn.min_rate 1 +spawn.max_rate 2 +spawn.min_density 0.5 +spawn.max_density 1.0 +ownerid 76561197961363992
Code:{ "Checks": { "autoRebootCountDown": 10, "checkIntervalMinutes": 5, "currentDevblog": 152, "currentOxideBuild": 3058, "enableAutoChecks": false, "enableAutoReboot": false, "notifyOnlineAdmins": true }, "Settings": { "ShowMinutes": [ 60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 ], "ShowSeconds": [ 50, 40, 30, 20, 10, 5, 4, 3, 2, 1 ] }, "SimpleUI": { "SimpleUI_Enable": true, "SimpleUI_FontSize": 30, "SimpleUI_HideTimer": 10, "SimpleUI_Left": 0.1, "SimpleUI_MaxHeight": 0.05, "SimpleUI_MaxWidth": 0.8, "SimpleUI_Top": 0.1 }, "Timers": { "RebootTimes": { "06:00": "30" }, "useTimers": true } }
-
[DOUBLEPOST=1493770846][/DOUBLEPOST] -
Code:
"RebootTimes": { "06:00": "30" },
Code:"11:15": "45", //would restart at 12:00 with a countdown of 45 minutes "23:30": "30" // would restart at 00:00 with a countdown of 30 minutes
SmoothRestarter will shutdown your server, which kills/ends RustDedicated.exe process
But because the .cmd script was used to start the server, when RustDedicated.exe ends, the script goes onward to the statement "goto start" and loops back to the line of code where ":start" is to which then the code runs RustDedicated.exe again, so basically its an infinite loop, to where whenever RustDedicated.exe ends/dies the server will be started again in 10 seconds.
.cmd code stripped:
Code::startecho Starting server... RustDedicated.exe %RustParams%echo Restarting server... timeout /t 10goto start