Guide · Networks and administration

How to schedule automatic restarts

A scheduled daily restart is one of the simplest ways to keep a server running smoothly. Combined with a backup and a few warnings to players, it runs itself.

Why restart at all

Long-running servers slowly accumulate loaded chunks, plugin caches and small memory leaks. A restart clears all of that. Most servers run fine for days, but a daily restart at a quiet hour keeps performance predictable and applies any plugin updates you have staged.

A good daily schedule

Pick the hour with the fewest players, then:

  • 15 minutes before: say Server restarts in 15 minutes
  • 5 minutes before and 1 minute before: repeat the warning
  • At restart: run save-all, then stop or a panel restart
  • After restart: create a backup, or schedule it at another quiet hour

Setting it up in the panel

Most panels have a scheduler. On StormNodes, the Schedules page creates tasks with a cron-style time and a list of actions, such as sending a command, waiting, restarting and creating a backup. Chain the warning commands with delays, then the restart, in one schedule.

At home

On Linux, a systemd timer or cron job can send commands to a server running in screen or tmux, then restart the service. On Windows, Task Scheduler can run a script. Panels make this easier, which is one reason hosted servers are popular.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

How often should I restart my Minecraft server?
Once a day is common for busy plugin and modded servers. Small vanilla servers can go longer without issues.
Will a scheduled restart lose player progress?
No, as long as the restart uses a clean stop, which saves everything first.
Can I restart without kicking players?
Not on a single server. On a network, players can be moved to the lobby while one game server restarts.