1. 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?
     
  2. Wulf

    Wulf Community Admin

    The example .bat that comes with Oxide handles restarting the server when closed.
     
  3. Excellent , thanks Wulf. one thing i did notice though is executing the "restart" command will close the cmd.exe and it wont start back up. but using the quit command will close the server and restart it. for anyone else that has the same problem i have been experiencing ill leave the plugin i use and my serverstart.bat bellow

    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": {
      }
    }
    
    ^That will issue a restart at 2:00am and 1:00pm on your servers local time, save the world 1 minute before restart and then execute the quit command. feel free to change the times accordingly.

    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
    
    Obviously just change the parameters for your startup script to match what your server is using.