---
title: "How to Schedule Automatic Restarts with Schedules"
description: "Set up automatic restarts for your Winheberg gaming server using Schedules and CRON syntax, no command line needed."
category: autres
subcategory: panel-gaming
icon: tabler:file-text
date: 2026-07-24
author: Winheberg
slug: "schedule-automatic-restart"
order: 35
image: /statics/images/docs/en/panel-gaming/schedule-automatic-restart.webp
tags: [schedule, cron, automatic restart, gaming panel]
keywords: [automatic restart schedule, cron gaming panel, automatic server restart, pterodactyl schedule, winheberg gaming panel]
link_fr: "/docs/panel-gaming/schedule-redemarrage-automatique"
---

## Context

Keeping a game server stable over time sometimes requires restarting it regularly. Memory builds up, some resources leak, and certain changes only take effect after a full restart. Rather than doing it manually, the Winheberg panel offers a scheduling system called **Schedules**, which lets you automate these actions at set intervals.

This guide explains how to set up an automatic restart CRON task from the Winheberg panel, with no command line or outside intervention needed.

## What is a Schedule?

A Schedule is a scheduled task tied to your server in the panel. It relies on CRON syntax, a standard format for precisely defining when an action should run (every hour, every night at 3am, every Monday, etc.). Each Schedule can chain several actions in a specific order, with a delay between each one.

## Prerequisites

You need an active server on the Winheberg panel and to be logged in with an account that has access to Schedule management.

> [!NOTE]
> If your account is a sub-user, check that the **Schedules** permission has been enabled by the server owner.

## 1. Access Schedules

Log in to the Winheberg panel, then select the relevant server.

In the left side menu, click **Schedules**.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967464478-f5bd3bd3feaff35c0fce4c5c.webp" alt="Schedules menu in the Winheberg panel" width="400" />

## 2. Create a Schedule

Click **Create Schedule**.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967485384-534b3623a76a2cd676f87271.webp" alt="Create Schedule button" width="800" />

### 2.1 Name the task

Give your Schedule a clear name, for example `auto-restart`. This name is purely for your own reference in the list.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967508340-18c9efb5b2bdeaa5181751ea.webp" alt="Schedule name field" width="800" />

### 2.2 Set the frequency

Next, enter the execution frequency in CRON format. This format is made up of five fields representing minutes, hours, day of the month, month, and day of the week, respectively.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967526167-901e0a6d39764ea5cf8057c3.webp" alt="CRON frequency configuration" width="800" />

The table below lists the most commonly used expressions.

| Frequency | CRON expression | Description |
|---|---|---|
| Every hour | `0 * * * *` | At the start of every hour |
| Every 2 hours | `0 */2 * * *` | Every 2 hours |
| Every night at 3am | `0 3 * * *` | Daily nightly restart |
| Every morning at 6am | `0 6 * * *` | Daily morning restart |
| Every Monday at 4am | `0 4 * * 1` | Weekly task |
| Every 30 minutes | `*/30 * * * *` | Frequent restart |

> [!TIP]
> The **Show Cheatsheet** button in the panel displays a quick reference for CRON syntax if you're not familiar with this format.

### 2.3 Additional options

Two options are available before confirming.

**Only when server is online** runs the task only if the server is already started. This option is recommended to avoid an unnecessary restart if the server is already stopped.

**Schedule enabled** turns the task on or off. Leave it enabled so the Schedule starts working as soon as it's created.

Click **Create Schedule** to confirm.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967541891-c7b8602e67ac474b43d2d621.webp" alt="Confirming the Schedule" width="800" />

## 3. Add the stop task

Once the Schedule is created, click **Manage Schedule** to access its tasks.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967555801-4b58b42ff6da4d19ccab572b.webp" alt="Manage Schedule button" width="800" />

Click **New Task** to add the first action.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967570480-1ac88c54f5684b701d4da6cf.webp" alt="New Task button" width="800" />

Set up the task with the following parameters.

| Field | Value |
|---|---|
| Action | `Send power action` |
| Time offset | `0` |
| Payload | `Stop the server` |

Click **Create task**.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967591328-aaa12c087fdc2312274fbb1a.webp" alt="Stop task configuration" width="800" />

## 4. Add the start task

Add a second task via **New Task**.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967700359-0608644618e58cd4728801e0.webp" alt="Adding the start task" width="800" />

Set up the task with the following parameters.

| Field | Value |
|---|---|
| Action | `Send power action` |
| Time offset | `30` |
| Payload | `Start the server` |

The 30-second offset gives the server enough time to shut down cleanly before the start is triggered. Click **Create task** to confirm.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967608653-b2a5615ef9291bc304408a14.webp" alt="Start task configuration" width="800" />

## Result

Your Schedule is now active. The server will stop and then restart automatically according to the frequency you set, with no action needed on your part.

<img src="/statics/images/docs/en/panel-gaming/schedule-automatic-restart-1779967623932-199cebc26b2a3b631a2dfbc0.webp" alt="Active Schedule with both tasks configured" width="800" />

## If you run into trouble

### ❌ The Schedule is active but the server doesn't restart

- Check that **Only when server is online** isn't checked if your server was stopped at the time it was meant to run

### ❌ The server restarts immediately without stopping first

- The start task's Time offset is likely set to `0`, change it to `30` to give the stop time to finish

### ❌ The Schedule doesn't run at all

- Check that **Schedule enabled** is turned on
- Check that the CRON expression is valid

### ❌ Access denied to Schedules

- If you're a sub-user, ask the server owner to enable the corresponding permission in the account settings

## Best practices

- **Pick a quiet restart time**, ideally at night or early morning, to minimize the impact on connected players. A daily nightly restart at 4am or 5am is often a good compromise
- **Avoid overly short intervals** (every 5 or 10 minutes) unless you have a specific need, since it leaves players little time to reconnect and can disrupt the gaming experience
- **Back up important data** before restarting if your server holds inventories or progress. Some games offer a save command you can trigger with a **Send command** task added before the stop task
- **Give each Schedule a clear name** if you create several, this makes maintenance easier and avoids mixing up tasks

## Need help?

If your Schedule doesn't trigger, if the server doesn't restart in the expected order, or if you're unsure about the CRON syntax to use, our team is here. Open a ticket in the **Technical** department from your client area, fill in the **Related Product** field with the server in question, and specify the Schedule's name along with the behavior you observed.

Your server is now set up to restart automatically, with no action needed on your part 🎮
