Skip to main content

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

  1. Log in to your LordHosting game panel
  2. Select your Minecraft server
  3. In the sidebar menu, click Schedules

Step 2: Create a New Schedule

  1. Click Create Schedule
  2. Configure the settings:
FieldValueDescription
NameDaily RestartName of your task
Minute0At minute 0
Hour6At 6 AM
Day of Month*Every day
Month*Every month
Day of Week*Every day
  1. 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

  1. Click on the schedule you just created
  2. Click New Task
  3. Configure the action:
FieldValue
ActionSend power action
Payloadrestart
Time Offset0
  1. 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.

Add these tasks in order to your schedule:

OrderActionCommand / PayloadDelay
1Send commandsay §c[Server] §fAutomatic restart in 5 minutes!0 seconds
2Send commandsay §c[Server] §fRestart in 1 minute!240 seconds
3Send commandsay §c[Server] §fRestart in 10 seconds...290 seconds
4Send power actionrestart300 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 (not Restart or RESTART)

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.