Skip to content

Auto Stop

Philippe edited this page Nov 13, 2026 · 1 revision

Auto Stop

Auto stop shuts down servers nobody plays on, to save resources. It is controlled by the auto_stop feature flag: its default comes from ENABLE_AUTO_STOP_SERVER, and it can be switched in the Web Dashboard at runtime.

How it works

Every AUTO_STOP_SLEEP_TIME seconds (default 1800, so 30 minutes) the bot checks every server:

  1. A server that isn't running is ignored.
  2. A server that is starting, updating or importing is skipped.
  3. If Crafty can't ping the server, its player count is unknown and the server is skipped. This happens while a server starts, for server types Crafty can't ping, or when the port in Crafty is wrong.
  4. If the server is empty, the bot remembers it. It is only stopped when it is still empty at the next check.

So a server always gets at least one full interval for players to join, even when it was started just before a check or was running when the bot started. If a player joins in between, the count starts over.

The decisions are logged at INFO, for example "server Survival is empty, stopping it at the next check if it still is". Set the log level to DEBUG in the dashboard to see every check.

Clone this wiki locally