mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 08:13:12 +09:00
Restart instances that crash after running for 10 minutes
Adds instance.restart_after_crash (default off) and instance.crash_retry_attempts (default 3, 0 for no limit). The host only restarts an instance that ran for at least 10 minutes before exiting unexpectedly, so a boot loop stops after one crash. A user stop, kill or restart resets the count; it is not persisted across host restarts. Closes #1251 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7a2aade25b
commit
565e931a96
5 files changed
+142
-1
No files matched your search
@@ -520,6 +520,8 @@ export interface InstanceConfigFields {
|
||||
"instance.assigned_host": number | null;
|
||||
"instance.auto_start": boolean;
|
||||
"instance.exclude_from_start_all": boolean;
|
||||
"instance.restart_after_crash": boolean;
|
||||
"instance.crash_retry_attempts": number;
|
||||
"instance.is_template": boolean;
|
||||
"instance.template_id": number | null;
|
||||
"instance.inherited_fields": Record<string, true | string[]>;
|
||||
@@ -633,6 +635,16 @@ export class InstanceConfig extends classes.Config<InstanceConfigFields> {
|
||||
type: "boolean",
|
||||
initialValue: false,
|
||||
},
|
||||
"instance.restart_after_crash": {
|
||||
description: "Start this instance again if it crashes after running for at least 10 minutes",
|
||||
type: "boolean",
|
||||
initialValue: false,
|
||||
},
|
||||
"instance.crash_retry_attempts": {
|
||||
description: "Restarts after a crash before giving up, 0 for no limit. Reset when the instance is stopped",
|
||||
type: "number",
|
||||
initialValue: 3,
|
||||
},
|
||||
"instance.is_template": {
|
||||
description:
|
||||
"Mark this instance as a template other instances can inherit config from. " +
|
||||
|
||||
Reference in new issue
Block a user