Automatic Server Restarts

A new update is now available, introducing seasons and more!
Latest hotfix: 0.8.0.1 (2024-12-20)
  • Hi all,


    Has anyone figured out a way to automatically restart the server on a schedule on a Windows server?


    I have tried for hours trying to get Task Scheduler to start the java file, in fact my last attempt I felt I was getting pretty close - but then I totally broke my test server. How I broke it with console commands launching a jar file I have no idea =O Java's not broken as I can launch other Java based apps. This isn't the problem: I'm sure I can fix this, but can anyone tell me how to restart the server on a schedule? ;(



  • I'm not using Windows for my gameserver but i just tried it locally and could get it started.


    I've attached the scheduler exported file. Of course you have to change it to your settings (paths etc) but maybe it helps to get the point.

    Files

    • RWServer.xml

      (3.63 kB, downloaded 480 times, last: )

    Gamer aus Leidenschaft
    (Web) Entwickler aus Leidenschaft
    <3 Vater aus Leidenschaft <3
    (prio in aufsteigender Sortierung ;) )


    ~~~~~~~~~~~~~~~~~
    1. Entweder man macht etwas richtig oder lässt es bleiben!
    2. Egal wie lange etwas dauert, Hauptsache es wird fertig (irgendwann)
    ------------------------
    Discord: Devidian#1334

  • Thanks @Devidian


    Just had a peek inside your XML, yes that was exactly how I was launching the jar via Task Scheduler (C:\Program Files\Java\jre1.8.0_211\bin\java.exe with args -Xmx1024m -jar server.jar) so it's odd why mine wasn't working :S even odder that it broke something.


    Am I right to believe you reference this XML file within the server.properties file (server_restart_script=RWServer.xml) ?


    Maybe this is the route to take and not Task Scheduler

  • No this is just the exported xml file from the task created in Windows Task Scheduler. Here some screenshots (German of course as this is my language setting - hope you get it anyway)





    Gamer aus Leidenschaft
    (Web) Entwickler aus Leidenschaft
    <3 Vater aus Leidenschaft <3
    (prio in aufsteigender Sortierung ;) )


    ~~~~~~~~~~~~~~~~~
    1. Entweder man macht etwas richtig oder lässt es bleiben!
    2. Egal wie lange etwas dauert, Hauptsache es wird fertig (irgendwann)
    ------------------------
    Discord: Devidian#1334

  • yahgiggle did make an updater/restart program as well as a restart on crash program for you people that host your own servers.


    restartoncrash.rar


    RWAutoServerInstaller.zip


    I can't find the link to the downloads but here are the files I got from him. They seem to still be working well from what I can see on my lan test server. Of course they are for windows servers. I can help with configs if needed. The restart program has the configs I use. You should just have to change the drive letters in the appropriate areas.

  • Finally got it running! 8o


    My server also acts as a test server for work and as such it is also a DC. I had to edit some GPOs to allow the task user to execute the task!


    Phew!

    Soooo..... care to share the process with us noobs ??? :P This is something I really want working on my dedicated to ensure it gets timely restarts.

  • here it is again.


    restartoncrash.rar


    the original downloads and opens fine for me though. Are you using WinRAR to open it? That is what I use. Also make shure you have the proper address to the rw_server.exe set correctly in the settings.ini. you can remove the settings.ini file and start it up and add it through the add button at the top of the window too. It will make a new settings.ini file it's self. I just tested with 7zip and the file works fine. My suggestion would be trying to redownload. Don't forget to leave the program running while server is running. If you have it set up properly, it will just start your server when it starts up :) and when used with the other 1, you have regular restarts as well as checks for updates at regular intervals. They were made to work together by @yahgiggle . I haven't seen him around for a while.

  • you may have to shut the restart on crash down while using the update dew to timing intervals. set the time delay on the crash restart a little longer then the auto restart so they don't interfier I believe. If you don't want the frequent update checks, just close that window.I am not shure if the auto restart on time settings will restart after a system crash but the restartoncrash can be set to start the server atleast. The timed restarts would have to be restet I believe. I am not shure about this though. I have not tested but you might be able to have the restartoncrash restart the timed restart window too.

  • this is for a windows install. stand alone server (or should I say dedicated). steamcmd download. If you are using the server in the steam directory, it does not seem to work with that.. Try using the


    RWAutoServerInstaller.zip


    to download the server files then set the restartoncrash to the .exe there . That is what it was made for. You just move your world, plugins, permissions, and script folder over to the new server folder and your server.properties file over and you have it. I use the stand alone and not the 1 in the game files from steam. You don't need the game installed or even steam installed on your comp to run the server that way.

  • the installer will install the server by steamcmd and create the .exe file for you as well as can be used to update the server in the future. It also does restarts by a timer I believe. And the auto update is controlled by timer too.

  • The last reply was more than 365 days ago, this thread is most likely obsolete. It is recommended to create a new thread instead.

    • :)
    • ;)
    • :(
    • :P
    • ^^
    • :D
    • :verysad:
    • ;(
    • X(
    • :*
    • :|
    • :crazy:
    • :lol:
    • :dizzy:
    • =O
    • <X
    • ||
    • :thinking:
    • :wacko:
    • :/
    • 8)
    • :wat:
    • :huh:
    • :silenced:
    • :wow:
    • 8|
    • :angry:
    • :thumbdown:
    • :thumbup:
    • :sleeping:
    • :hushed:
    • :nerd:
    • :saint:
    • :drooling:
    • :love:
    • :monocle:
    • :poo:
    • :party:
    • :drunk:
    • <3
    • :!:
    • :?:
    The maximum number of attachments: 10
    Maximum File Size: 1 MB
    Allowed extensions: 7z, asset, avi, bmp, dds, gif, jpeg, jpg, json, log, lua, mp3, mp4, ogg, pdf, permissions, png, properties, rar, txt, unitypackage, xml, zip

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!