Files
BastiaanandClaude Opus 5.5 8d7d5ff10f Add a readme to every plugin and list them in the main readme (#505)
Commands, Permission Groups, Player Statistics, Reports, Roles, Scenario,
Server UPS and Module Utilities get a readme covering their config,
permissions, commands, web pages and Lua and Node API.

The existing readmes are brought up to date: Auto Restart now that
clusterio marks a restart after a plugin install, Discord Auth gets the
code timeout, command aliases and its Lua API, and the GUI guide says what
the plugin is and has its toolbar examples and an iterator name fixed.

The main readme gets a Plugins section listing each plugin by name and
package with a one line description.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:12:48 +01:00

2.1 KiB

ExpGaming - Auto Restart

Restarts hosts, and optionally the controller, that need a restart once nobody is playing on them.

A host needs a restart after a plugin is installed or updated, after a clusterio update, and after a config change that only applies on restart. The web UI shows this as "Restart Required". This plugin waits until the host has had no players online for a while and then sends it the same restart request the web UI button does.

Restarting a host stops every instance on it. Once the host is back, the instances that were running are started again. Instances with auto start enabled are started by the host itself.

Requirements

  • Hosts must be run with --can-restart so their process monitor starts them again. The systemd units and run scripts written by the installer do this.
  • controller.system_metrics_interval must be above 0. That poll is how the controller learns a host needs a restart.
  • Plugins added outside clusterio, for example checked out into external_plugins, do not mark the host as needing a restart. Use "Mark Restart Required" on the host page, or clusterioctl host mark-restart-required <host>, so this plugin picks it up.
  • With restart_controller enabled, the controller must also be run with --can-restart. The controller is not restarted if the installed clusterio version is older than the running one.

Config

All fields are on the controller.

Field Default Description
exp_auto_restart.idle_seconds 300 How long a host must have had no players online before it is restarted.
exp_auto_restart.scope host With cluster, players on any host hold back every restart.
exp_auto_restart.start_instances true Start the instances that were running again once the host is back.
exp_auto_restart.restart_controller false Also restart the controller when it needs it and no players are online anywhere.

Hosts are checked every 10 seconds. A host that refuses the restart, for example because it was not run with --can-restart, is logged once and left alone until its process changes.