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.