modules/microvm: let nomad retry restarting
This commit is contained in:
parent
314227533a
commit
222b41f5e2
|
@ -132,7 +132,12 @@ in
|
||||||
|
|
||||||
group "nixos-${config.system.nixos.label}" {
|
group "nixos-${config.system.nixos.label}" {
|
||||||
count = 1
|
count = 1
|
||||||
restart { attempts = 1 }
|
restart {
|
||||||
|
attempts = 2
|
||||||
|
delay = "10s"
|
||||||
|
mode = "delay"
|
||||||
|
interval = "10m"
|
||||||
|
}
|
||||||
${lib.concatMapStrings (interface@{ id, ... }: ''
|
${lib.concatMapStrings (interface@{ id, ... }: ''
|
||||||
task "interface-${id}" {
|
task "interface-${id}" {
|
||||||
lifecycle {
|
lifecycle {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user