Autorestart

Description

This mod automatically restarts a server after a given amount of uptime is reached with an optional delay/grace period if players are online.

Long running Minetest servers accumulate large memory usage over time and may exhibit various performance issues. This is most noticeable on servers running on low-end hardware (or even VPSes). This mod aims to alleviate these issues by regularly restarting the server to keep it running fresh, while giving players a heads-up that the server will be restarting.

NOTE: This mod will simply request a server shutdown, your server setup will need to be able to start the server back up again e.g. in the form of a looping Bash script. See Setting up a server on the Minetest Wiki for an example of how to do so.

By default the mod will restart after 24 hours of uptime, with a grace period of 10 minutes if players are online. These values are configurable with autorestart_interval and autorestart_delay.

If autorestart_delay is 0 then it will immediately restart once the uptime is reached, otherwise it will give a certain grace period to players still online. If the server has no players at the time a restart is triggered, or if all players leave before the grace period is over it will immediately restart.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

2025-03-19

Download

2025-03-19 11:53 UTC

2025-03-19 🔗

  • Remove unused local
  • Add missing color functions
  • Add chatcommand to trigger the restart

2024-11-08

Download

2024-11-08 22:24 UTC

2024-11-08 🔗

No release notes

2024-03-26

Download

2024-03-26 15:36 UTC

2024-03-26 🔗

No release notes

All releases

Threads

New thread

Information

Provides

autorestart

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
autorestart
Languages
English
License
MIT
Maintenance State
Maintenance Only
Added
2024-03-26 15:36 UTC
Maintainers
ROllerozxa