Solved Auto restart

Discussion in 'Plugin Requests' started by Scott_Sterling, Aug 14, 2016.

  1. Could someone code me a simple auto restart plugin? I also have timedexec on my server.
     
  2. Wulf

    Wulf Community Admin

    Plugins can't restart your server, all they can do is shut it down. You can easily use one of the existing plugins such as Timed Execute or SchedShutdown. If you have full server access, the basic .bat and .sh scripts that come with Oxide provide restarting of the server.
     
  3. Hi Wulf!

    I've been in need of an auto restart setup on my server for months. I have full access to the server (bat files and all).

    Would it be possible for you to explain how I would go about adding auto restarts (probably every 12 hours) on my server (explained from start to finish). The articles I've found simply don't work.

    Now I have no doubt you probably have had to explain this hundreds of times, but in my hours and hours of searching I simply can't find a solution. I think a pinned post on the forums would help a lot of people.

    Please let me know Wulf, appreciate your amazing support for this community!
     
  4. Wulf

    Wulf Community Admin

    There are examples of how to handle that in the TimedExecute plugin's support thread.
     
  5. You can auto restart your server in vanilla, without oxide..
    Just use RustAdmin RCON Tool for Rust | Oxide
    There is a Scheduled Commands section, set it up and you are laughing..

    Just the command 'restart' will start an automatic 60 second countdown in chat. And restart your server for you.
    Just make sure the 'save' command is run just before the server restarts. To avoid any rollback..
     
  6. Wulf

    Wulf Community Admin

    That would require the RCON tool to be loaded and running 24/7 somewhere though, the OP asked for a plugin too.
     
  7. Hey!!!

    Now we're talking, this is what I needed. I've got a dedicated server so this is looking great! Thanks for this :)
     
  8. can someone please help me with an example on how to make the custom command line for auto restart for example let's say you wanted to restart at 1 p.m. and 1 a.m.
     
  9. Timed Execute | Oxide
     
  10. Will this work for vanilla servers non modded
     
  11. there is no way to do it without modded server, except if you code a tool that send restart command using rcon
     
  12. Wulf

    Wulf Community Admin

    The restart command in Rust doesn't actually start the server, it is just a timed shutdown. You'd still need a program or external script to start it.
     
  13. the batch file did it no?
     
  14. Wulf

    Wulf Community Admin

    Only if using our example and self hosting.