Articles on: Minecraft

How to automatically restart your Minecraft server

It's good practice to restart your Minecraft server regularly as this allows the server clear all the data in the RAM and the CPU processes that isn't needed, allowing for other server processes to run more smoothly. Think of it like a good nights sleep and waking up with a clear mind in the morning.

How to automatically restart your Minecraft server



Head over to the Schedules tab under Advanced on the sidebar of your server.



Click the Create schedule button.



A pop-up will appear prompting you for a Schedule name and the schedule frequency. In our case, we're calling our's Tri-daily Restart and having the schedule run every 3 days.




The scheduling uses a system called Cronjobs, see crontab.guru for help with working out the desired frequency.

Once you are happy with the details you've set, click the Create schedule button.



Click on your newly created schedule and click New task.

You'll then be prompted for 4 details.
Action - A command, power action or backup creation.
Time offset - Delay the action by an amount of time before running after the previous task.
Payload - What should be ran.
Continue on failure - Whether future tasks should run if the current task fails.

For our example, we will set the action to Send Power Action and set payload to Restart the server. You can leave all the other properties as default.


Once you are happy with the details you've set, click the Create Task button.

That's it, you can now see at the top of the schedule when it'll next run and thus, restart your server.

Updated on: 30/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!