Solved Auto-restart on crash?

Discussion in 'Rust Discussion' started by Judd, Sep 23, 2014.

  1. Is there any way to autorestart your server if it crashes?
     
  2. Wulf

    Wulf Community Admin

    You'd have to contact your host.
     
  3. I'm hosting my server on my own dedicated Windows 2008 R2 server, so I'd be contacting myself :p
     
  4. Wulf

    Wulf Community Admin

    Then you'd have to setup some sort of batch script or other external problem to handle it.
     
  5. That's what I'm asking help for...
    I currently have:
    Code:
    @echo off
    Start /high rust_server.exe -batchmode -hostname "FRUSTRATEDGAMERS.COM :: Anti-Cheat|KIT|REMOVER|SETHOME|ECON" -port 28015 -datadir "save/rust/" -maxplayers 50 -cfg "save/server.cfg" -oxidedir "save/oxide"
     
  6. If you're willing to use a 3rd party tool google "Control Running Program", its freeware.
     
  7. I use keeprunning, there are free légal versions out their but i couldnt find thèm.
    Other possibility would be to transform your run_server.exe into à windows service application so windows will keep it running all the time for you and restart it on crash.
    But for that you need to find à tutoriel, it seemed hard to do so i used keeprunning app
     
  8. Wulf

    Wulf Community Admin

    Asking if it's possible and asking someone to write it for you are two entirely separate things. ;)

    There's a lot of examples of this that can be found via searching the net. You'll likely have to experiment, as I haven't really seen any scripts made purely for Rust Server yet. Better option may be one of the programs that Domestos or Reneb linked.
     
  9. Didn't even think about making it a windows service, I can use nssm for that! thanks!
     
  10. I'm interested in getting someone to write it for me paid :D.

    or a guide on how to make it a Service =D I work long hours and need it to autorestart.
     
  11. Wulf

    Wulf Community Admin

    Use the .bat script that comes with Oxide and the TimedExecute plugin, done.
     
  12. I've got timedexecute and restarter.exe however it crashed at lunch time, and didnt automatically restart, as I work 12 hour shifts, this is alot of downtime.
     
  13. Wulf

    Wulf Community Admin

    A simple .bat should be fine like I mentioned.
     
  14. any tips on what to google to figure out what I need in said bat

    All I can find is minecraft bat's lol
     
  15. Wulf

    Wulf Community Admin

    It's included in every Oxide zip/download.
     
  16. Oooooh I overlooked that, so if I input my server stuff in there it'll autorestart on crashes? thanks bro
     
  17. Wulf

    Wulf Community Admin

    I'd copy it/rename it, but you can. I'd recommend using the server.cfg for most settings though.
     
  18. found something -silentcrashes, will get rid of the notification and let restarter.exe restart the process?