How to Restart Your Minecraft Server Automatically
- On the left-hand side, Click "Schedules".
-
Create a new schedule. Here, you will need to assign it a name and configure the time between each restart. This system uses the cronjob syntax. This page can help you configure the time. You can also set the schedule to only run when the server is online.
- In this example, we will be using the
0 */12 * * *
CRON. This will make our server restart every 12 hours. Once you have filled in the information, click "Create Schedule".
- In this example, we will be using the
- Once the schedule has been created, Click the "New Task" button.
-
You need to fill out 4 things:
- Action: Can be a command, power action or creating a backup
- Time offset: The amount of time to wait after the previous task executes before running this one.
- Payload: What should be run.
- Continue on failure: Whether future tasks will run if the current task fails.
Set the action to "Send Power Action". Leave the time offset as 0. Last but not least, set the payload to "Restart the server". Once completed, click "Create Task". - That's it! It will show when it is going to run next at the top of the schedule.