Automatic Restarts#
Scheduling regular server restarts helps maintain stability by clearing RAM. This is particularly beneficial for heavily modded servers.
Why Restart Regularly?#
Over time, servers accumulate:
- Memory leaks from mods/plugins
- Cached data that isn't properly cleared
- Entity buildup
Regular restarts clear this buildup and keep your server running smoothly.
Setting Up Automatic Restarts#
Step 1: Access the Control Panel#
Go to your control panel and select your server.
Step 2: Configure Time Zone#
- Click Settings in the sidebar
- Set your server's time zone
This ensures schedules run at the expected times and console timestamps are accurate.
Step 3: Create a Schedule#
- Go to the Schedules tab
- Click Create Schedule
- Name it (e.g., "Daily restart")
-
Configure the timing:
- Select "Every day at 06:00" for a preset
- Or customize the hour field as needed
Step 4: Add the Restart Task#
- Click on your newly created schedule
- Click Create Task
- Set Action to "Send power action"
- Under Payload, choose "Restart the server"
- Click Create Task
Adding Player Warnings#
Warn players before the restart so they don't lose progress:
Create Warning Task#
- In your schedule, click Create Task
- Set Action to "Send command"
-
Set Payload to:
say Server will restart in 3 minutes! - Set Time offset to
0 - Click Create Task
Adjust Restart Timing#
- Edit your restart task
- Set Time offset to
180(3 minutes in seconds)
Now the warning appears first, followed by the restart 3 minutes later.
Multiple Warnings#
For a better experience, add multiple warnings:
| Offset | Command |
|---|---|
| 0 | say Server will restart in 5 minutes! |
| 120 | say Server will restart in 3 minutes! |
| 240 | say Server will restart in 1 minute! |
| 290 | say Server restarting in 10 seconds... |
| 300 | (Restart action) |
Recommended Restart Frequency#
| Server Type | Frequency |
|---|---|
| Vanilla/light plugins | Every 24-48 hours |
| Moderate mods | Every 12-24 hours |
| Heavy modpacks | Every 6-12 hours |
Tip
Schedule restarts during low-activity hours (early morning) to minimize player disruption.
Combining with Backups#
Create a backup before each restart for maximum safety:
- Add a "Create backup" task at offset
0 - Add warning messages
- Add the restart task with appropriate offset
The schedule system limits backups to 5 per day to prevent storage issues.