How to Schedule Automatic Tasks on Your Game Server

Learn how to use the RiverHosting panel to set up scheduled tasks, so your server can run commands or restart itself automatically on a timer.
The RiverHosting panel includes a built-in scheduler that lets you automate actions on your server. You can use it to send commands, restart your server, or run other tasks at set times, without needing to log in manually. This guide walks you through how to create and manage scheduled tasks from start to finish.
Before you start
- You need an active game server on your RiverHosting account.
- Log in to the panel at panel.riverhosting.com before following these steps.
- Your server does not need to be stopped to create a schedule, but some tasks only work while the server is running.
A scheduled task is an action the panel runs automatically at a time or interval you choose. For example, you could have your server restart every night at 3:00 AM, or send a warning message to players every hour.
1. How to open the scheduler
- Log in to the panel at panel.riverhosting.com.
- Click on your server from the server list.
- In the left-hand menu, click Schedules.
- You will see a list of any existing schedules, or an empty screen if you have not created any yet.
Under Presets, you can create ready-made schedules such as Daily Restart, Weekly Restart, Nightly Backup, Weekly Backup, Nightly Maintenance and Restart with Warnings. They only ask for the time. Which presets you see depends on your game.
2. How to create a new schedule
- On the Schedules page, click the New Schedule button.
- Give your schedule a name. Choose something descriptive so you can recognise it later, for example
Daily RestartorHourly Warning. - Set the timing. On the Simple tab, choose under How often: Every few minutes, Every hour, Every day or Certain days, then pick the minute, time or days, and your Timezone. The schedule is saved in UTC, so daylight saving time shifts it by an hour in your local time. If you prefer cron, use the Advanced tab and refer to the examples below.
- Make sure the Active toggle is turned on. Turn on Only Online if the schedule should only run while the server is up.
- Click Create Schedule to save it.
If the cron fields look confusing, here are a few common patterns to copy: - Every day at 3:00 AM: 0 3 * * * - Every hour on the hour: 0 * * * * - Every 30 minutes: */30 * * * * - Every Sunday at midnight: 0 0 * * 0
3. How to add a task to your schedule
A schedule on its own does nothing until you add at least one task to it. A task is the actual action that runs when the schedule fires.
- After creating your schedule, click on its name in the Schedules list to open it.
- Click NEW TASK.
- Choose the task type from the Action dropdown:
- Send Command: Sends a console command to your running server, such as a save command or a chat message.
- Power Action: Starts, stops, restarts or kills your server.
- Create Backup: Triggers a backup of your server files.
- Fill in the details for the task. For example, if you chose Send Command, type the command you want to send in the Payload field.
- If you want to run multiple tasks in sequence, set a Time Offset (s) for each one. This is the delay after the previous task, from 0 to 900 seconds. The first task can stay at
0. - Click Create Task to save it.
Here is a common setup for a daily restart that warns players first: 1. Task 1 at offset 0: Send command, type your server's broadcast or say command with a message like "Server restarting in 1 minute!" 2. Task 2 at offset 60: Power Action, choose Restart Server. This gives players 60 seconds of warning before the restart happens.
4. How to edit or delete a schedule
- Go to Schedules in the left-hand panel menu.
- Click on the schedule you want to change.
- To edit the timing or name, click the edit icon and make your changes, then click Update Schedule.
- To remove a task from the schedule, click the delete icon next to that task.
- To delete the entire schedule, use the Delete option on the schedule itself.
If you want to pause a schedule temporarily without losing it, toggle it off using the Active switch instead of deleting it. Deleting a schedule removes it and all its tasks permanently.
Troubleshooting
- My schedule is not running. Check that the schedule is active. Open the schedule and confirm the Active toggle is turned on. If Only Online is on, the schedule skips runs while the server is offline.
- The command task is not working. Make sure your server is actually running when the task fires. Commands sent to a stopped server will not execute. Consider adding a power action task before the command if needed.
- I do not see a Schedules option in the menu. Try refreshing the page. If it still does not appear, contact RiverHosting support as it may be a permission issue on your account.
- My tasks are running in the wrong order. Tasks run in the order they are listed, and each Time Offset counts from the task before it. If the order is wrong, delete the tasks and add them again in the order you want.
- The schedule ran but the server did not restart. Make sure you selected Power Action and chose Restart Server, not another option.
Need help?
If you run into any issues with your schedule or are not sure what settings to use, the RiverHosting support team is happy to help.
Visit riverhosting.com/support to open a ticket or find other ways to reach us. We can help you set up your schedule or figure out why a task is not running as expected.