Solved Server auto restart

Discussion in 'Rust Discussion' started by Ideal, Jun 15, 2016.

  1. How can I start a bat file from my windows root-server?
    I can use TimedExecute to shut the server down but how would I start it again automatically?
     
  2. What if the timed command was 'restart' instead of 'stop' ????
     
  3. Does it work as good as shutting the server down completely?
    Because I have to restarte the server several times a day bc of many entities. Will normal restart work?
     
  4. Wulf

    Wulf Community Admin

    Your .bat or host would need to have something that actually restarts the server. The 'restart' command doesn't actually restart it alone.
     
  5. Hmmm yeah.
    I am hosting my server on a dedicated root-server running windows. Any suggestions how I could make a task for automated shutdowns / restarts of the bat?
     
  6. Your server should auto restart when you use the TimedExecute for Rust | Oxide plugin if not ask your hosting support
     
  7. I'm assuming his host may not provide support, unless it's a gameservers fake "dedicated server" that's actually shared or something.
     
  8. Every good hosting gives support
     
  9. Well he said it's a dedicated host, unless they set up steamCMD for him, I know OVH and reliablesite.com don't do it, they provide game servers, but expect the client to have a fair amount of technical knowledge, considering the servers can be used for a wide range of things, unless he bought it from a game host, which would be illogical considering they're generally limited and more expensive.
    [DOUBLEPOST=1466053095][/DOUBLEPOST]Download Rust Admin on your server, leave it running like the rust server, setup restart, solved :)
     
  10. He can add the line to his bat file from the sample bat
     
  11. I've got a root server. With full access. Nothing pre-installed.
    My question is if the 'restart' command works as good as if I would be shutting down the server completely and manually starting it again with some script / task.

    People say they restart their servers several times a day to keep the performance good.
    So does 'restart' just give me the same result (performance increase) as shutting the server down completely and starting it over again or not?
     
  12. The more buildings are on the server the more lag will be for players. Yes having a good box with a lot of ram will help and at first a daily restart does help but over time it will still lag a bit you can slow this down with installing TwigsDecay for Rust | Oxide but set it for twigs and wood in the config and "timespan": 30 will help you can use TimedExecute plugin to restart your server everyday and you can put a command in your bat file that it will auto start server when the TimedExecute plugin does restart it

    Everything after RustDedicated.exe replace it with what you have in your bat file
    Code:
    @echo off
    cls
    :start
    echo 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
     
  13. Thank you for answering exactly to my question, Resistance! ♥
    I have a question about your TwigsDecay plugin, if I set everything else to 0 will it not decay stone buildings ever? Wouldnt that also be bad for performance?
     
  14. You can put what you want to decay I make twig and wood only if you want stone then change it in the config below is mine change to decay stone if you want
    0 = no decay
    1 = decay

    Make sure you set this topic to solved
     

    Attached Files: