How to Schedule Automatic Server Restarts
A daily restart of your Minecraft server helps free up memory and prevent memory leaks, especially on modded servers (ATM10, RLCraft, Pixelmon, etc.).
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.