How to Schedule Automatic Server Restarts
Restart your server automatically every day, or every few hours, with a schedule.
Regular restarts keep a server running smoothly, especially with mods or many plugins.
Create a restart schedule
- Open your server and click Schedules in the sidebar.
- Create a schedule and give it a Schedule Name, such as "Daily restart".
- Choose when it runs:
- Use Preset: pick one such as Daily or Every 6 hours; or
- Custom Cron: enter a cron expression, for example
0 5 * * *for 05:00 every day (times are UTC).
- Turn on Only when online if it should only run while the server is running.
- Make sure it's Enabled and save.
Add the tasks
Open the schedule and add each step with New Task:
- Send Command:
say Restarting in 1 minute! - Power Action: Restart, with a Time Offset of
60seconds.
Tasks run in order; the offset is the wait after the task before it.
Tip
Add a Create Backup task before the restart to get a daily backup too.
Restart only when empty
Schedules can't check how many players are online. Pick a quiet time instead, and warn players with a say command first.