mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
incusd/instance: Add boot.autorestart
Closes #1096 Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
parent
5f46ec93e3
commit
a97b38c60e
@ -29,6 +29,14 @@ var HugePageSizeSuffix = [...]string{"64KB", "1MB", "2MB", "1GB"}
|
||||
|
||||
// InstanceConfigKeysAny is a map of config key to validator. (keys applying to containers AND virtual machines).
|
||||
var InstanceConfigKeysAny = map[string]func(value string) error{
|
||||
// gendoc:generate(entity=instance, group=boot, key=boot.autorestart)
|
||||
// If set to `true` will attempt up to 10 restarts over a 1 minute period upon unexpected instance exit.
|
||||
// ---
|
||||
// type: bool
|
||||
// liveupdate: no
|
||||
// shortdesc: Whether to automatically restart an instance on unexpected exit
|
||||
"boot.autorestart": validate.Optional(validate.IsBool),
|
||||
|
||||
// gendoc:generate(entity=instance, group=boot, key=boot.autostart)
|
||||
// If set to `false`, restore the last state.
|
||||
// ---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user