-
Notifications
You must be signed in to change notification settings - Fork 1
Backends

RedstoneReboot can perform a server shutdown or hand restart ownership to an external host backend.
| Backend | Ownership Model | Typical Use |
|---|---|---|
DEPEND_ON_HOST |
Local stop only | Default mode — relies on host environment (Pterodactyl, systemd, Docker, panel script) to handle post-shutdown restart |
SYSTEMD |
Supervisor-managed | Linux services managed by systemd
|
DOCKER |
Container-managed | Docker-based deployments |
LOCALSCRIPT |
Custom script | Custom restart scripts or wrappers |
PTERODACTYL |
Controller-owned | Pterodactyl panel-managed servers |
Backends are configured through restart-backends.properties.
backends-enabled=false
active-backend=DEPEND_ON_HOST
lockout-duration-seconds=300
ptero-url=
ptero-token=
ptero-id=
systemd-service=minecraft
localscript-file=start.sh-
backends-enabled: Set totrueto enable external backend handling; otherwise defaults toDEPEND_ON_HOST. -
Environment Variables: Sensitive properties support dynamic resolution using
${env.VAR_NAME:-fallback}(e.g.,ptero-token=${env.PTERO_API_KEY}). Allowed prefixes includeREBOOT_,PTERO_,MINECRAFT_, andJAVA_. -
Supervisor Wiring Requirements: Supervisor backends (
LOCALSCRIPT,SYSTEMD, andDOCKER) check for wiring proof. Pass the system property-Dredstonereboot.active=trueor set environment variableREDSTONEREBOOT_ACTIVE=1in your container or script to satisfy this check. (Auto-generated LocalScript wrapper templates export this environment variable automatically).
Use this when RedstoneReboot should issue a clean server stop and rely on your panel, Docker policy, or systemd service to restart the server process.
Use this when the server process is managed as a Linux service unit. RedstoneReboot triggers stop or restart calls via systemd.
Use this when the server runs in a Docker container and container restart policy handles container lifecycle.
Use this when using a wrapper script on standalone servers.
Use this when the Pterodactyl panel API manages the restart lifecycle.
/reboot doctor reports active backend state and detects potential environment mismatches.
Backend states:
-
FULL: Configured and verified -
ASSISTED: Configured with partial verification -
GENERATED: Script or configuration exists, wiring incomplete -
DEPEND_ON_HOST: Relies on host environment post-shutdown -
MISCONFIGURED: Missing or invalid settings
If a backend execution returns an uncertain state, RedstoneReboot enforces a temporary lockout based on lockout-duration-seconds to block redundant restart requests.