How to Set Up Automatic Restarts for Your Game Server

Learn how to configure automatic restarts for your game server using the RiverHosting panel to keep it running smoothly and reduce downtime.
Over time, game servers can slow down, run into memory issues, or simply benefit from a fresh start. Setting up automatic restarts on a regular schedule is one of the easiest ways to keep your server stable without needing to check on it manually. The RiverHosting panel makes this straightforward using the built-in Schedules feature.
Before you start
- You need an active game server on your RiverHosting account.
- Log in to the RiverHosting panel at panel.riverhosting.com.
- Select your server from the list on the home page.
- No technical knowledge is required. All steps are done through the panel interface.
Pick a time when your players are least likely to be online, such as late at night or early in the morning. This reduces disruption for anyone connected to the server.
1. Open the Schedules page
Schedules let you automate actions on your server at set times or intervals. To get started:
- Log in to the panel at panel.riverhosting.com.
- Click on your server from the list.
- In the left-hand menu, click Schedules.
Under Presets on the Schedules page, pick Daily Restart (05:00 by default) or Restart with Warnings, choose the time and click Create Schedule. Restart with Warnings counts down in chat (5 minutes, 1 minute, 10 seconds), saves and restarts. It is offered on games with an in-game message command, such as Minecraft, Terraria, Factorio, Don't Starve Together, CS2, TF2 and Garry's Mod. If a preset does what you need, you can skip the rest of this guide.
To build your own restart schedule instead, click the New Schedule button.
2. Configure the restart schedule
When creating a schedule, you will be asked to give it a name and set when it should run. The Simple tab lets you pick this without any cron knowledge: under How often, choose Every day and pick a time, or Certain days to pick days and a time. Choose your Timezone from the dropdown. If you prefer cron, the Advanced tab has the cron fields. Here are some common examples you can copy directly.
Every day at 4:00 AM: Minute = 0, Hour = 4, Day (Month) = *, Month = *, Day (Week) = * Every 12 hours: Minute = 0, Hour = */12, Day (Month) = *, Month = *, Day (Week) = * Every 6 hours: Minute = 0, Hour = */6, Day (Month) = *, Month = *, Day (Week) = *
- Enter a name for the schedule, such as
Daily RestartorAuto Restart. - Set the time on the Simple tab, or fill in the cron fields on the Advanced tab using one of the examples above.
- Make sure the Active toggle is turned on. Turn Only Online on if the restart should only run while the server is up.
- Click Create Schedule to save it.
3. Add a restart action to the schedule
Creating the schedule on its own does nothing yet. You need to add an action to it so the panel knows what to do when the schedule runs.
- After saving the schedule, click on it in the Schedules list to open it.
- Click NEW TASK.
- In the Action dropdown, select Power Action, then choose Restart Server.
- Leave the Time Offset (s) at
0unless you want the task to run a few seconds after the schedule triggers. - Click Create Task to save the action.
Once the task is saved and the schedule is active, your server will restart automatically at the times you configured. No further action is needed.
4. (Optional) Send a warning message before the restart
If you want to give your players a heads-up before the server restarts, the schedule can send a message first and restart a few minutes later. Tasks run in the order they are listed, and each Time Offset (s) is counted from the previous task, so the warning task must come first.
- Open your schedule. If you already added the restart task in step 3, delete it so you can add it again after the warning.
- Click NEW TASK, and in the Action dropdown, select Send Command.
- In the Payload field, enter a broadcast or say command for your game. For example, for Minecraft Java you could type
say Server restarting in 5 minutes. Please find a safe spot! - Leave the Time Offset (s) at
0and click Create Task. - Click NEW TASK again, select Power Action and Restart Server, and set the Time Offset (s) to
300. The restart then runs 5 minutes after the warning. - Click Create Task.
Offsets run from 0 to 900 seconds (15 minutes) and can never be negative. Each offset counts from the task before it. Set the schedule time 5 minutes earlier than when you want the actual restart.
Troubleshooting
- The schedule does not seem to be running. Check that the Active toggle is turned on inside the schedule settings. An inactive schedule will not run even if tasks are added to it.
- The server restarts at the wrong time. Check the Timezone you picked when creating the schedule. The schedule is saved in UTC, so when daylight saving time starts or ends, the restart shifts by an hour in your local time. Edit the schedule to correct it.
- The restart task is missing. If you created the schedule but forgot to add a task, open the schedule and use New Task to add the Restart Server action.
- I want to pause restarts temporarily. You can disable the schedule at any time by opening it and toggling Active off. This keeps the schedule saved so you can turn it back on later.
- The in-game warning command is not working. The command format varies by game. Check what broadcast or server-wide message command your game uses and make sure it is entered correctly in the Payload field.
Need help?
If you run into any issues setting up your automatic restart schedule, the RiverHosting support team is happy to help.
Visit the support page at https://riverhosting.com/support to open a ticket or get in touch with the team. Include your server name and a description of the issue for the fastest response.