How to Schedule Automatic Server Restarts - Minecraft Server Guide
Learn how to configure automatic daily restarts for your Minecraft server on the LordHosting Pterodactyl panel. Improve performance and prevent memory leaks.
A daily restart of your Minecraft server helps free up memory and prevent memory leaks, especially on modded servers (ATM10, RLCraft, Pixelmon, etc.).
This tutorial applies to our Pterodactyl VPS, built to host your game servers with this panel.
Why restart daily? Modded Minecraft servers accumulate data in memory over time. A daily restart during off-peak hours ensures optimal performance for your players.
Prerequisites
- An active server at LordHosting
- Access to your game panel
Creating an Automatic Restart Task
Step 1: Access Schedules
- Log in to your LordHosting game panel
- Select your Minecraft server
- In the sidebar menu, click Schedules
Step 2: Create a New Schedule
- Click Create Schedule
- Configure the settings:
| Field | Value | Description |
|---|---|---|
| Name | Daily Restart | Name of your task |
| Minute | 0 | At minute 0 |
| Hour | 6 | At 6 AM |
| Day of Month | * | Every day |
| Month | * | Every month |
| Day of Week | * | Every day |
- Click Create Schedule
Choosing the right time: Select an hour when your server has few players online. 6 AM is typically ideal, but adjust based on your player base's timezone.
Step 3: Add the Restart Action
- Click on the schedule you just created
- Click New Task
- Configure the action:
| Field | Value |
|---|---|
| Action | Send power action |
| Payload | restart |
| Time Offset | 0 |
- Click Create Task
Your server will now automatically restart every day at 6:00 AM!
Bonus: Warn Players Before Restart
To avoid disconnecting players without warning, you can add alert messages before the restart.
Recommended Configuration
Add these tasks in order to your schedule:
| Order | Action | Command / Payload | Delay |
|---|---|---|---|
| 1 | Send command | say §c[Server] §fAutomatic restart in 5 minutes! | 0 seconds |
| 2 | Send command | say §c[Server] §fRestart in 1 minute! | 240 seconds |
| 3 | Send command | say §c[Server] §fRestart in 10 seconds... | 290 seconds |
| 4 | Send power action | restart | 300 seconds |
Minecraft Color Codes:
§c= Red§f= White§e= Yellow§a= Green
Example: §c[Alert] §fMessage will display "Alert" in red and "Message" in white.
Final Result
Here's what your complete schedule should look like:
📅 Daily Restart (6:00 AM)
├── 📢 5-minute warning (delay: 0s)
├── 📢 1-minute warning (delay: 240s)
├── 📢 10-second warning (delay: 290s)
└── 🔄 Restart (delay: 300s)
FAQ
The restart isn't working, what should I do?
Check that:
- The schedule is enabled (green toggle)
- The server time matches your timezone
- The payload is exactly
restart(notRestartorRESTART)
Can I schedule multiple restarts per day?
Yes, simply create a new schedule with a different time. For heavy modpacks like ATM10, a restart every 12 hours can be beneficial.
How do I temporarily disable the restart?
Click the toggle next to your schedule to disable it without deleting it.
Need help? If you encounter any issues, contact our support team.
Related guides
Updating your Pterodactyl VPS
Detailed guide to safely updating your Pterodactyl VPS to the latest version: backups, prerequisites, commands and post-update checks.
Add an Egg on Pterodactyl
Step-by-step guide to import an existing JSON Egg on Pterodactyl and add new games or applications to your hosting panel.
Creating a location on Pterodactyl
Step-by-step guide to create and organize a location (geographic area) on your Lordhosting Pterodactyl panel and group your nodes by datacenter.
Creating a node on Pterodactyl
Detailed tutorial to create and configure a new node on your Pterodactyl panel: Wings daemon, FQDN, SSL, port allocations and resource limits.

