Add a restart policy

This commit is contained in:
Quentin 2021-06-30 12:57:13 +02:00
parent 2d30e1a9c7
commit 784efbcc9b
Signed by untrusted user: quentin
GPG key ID: A98E9B769E4FF428

View file

@ -64,8 +64,8 @@ job "garage" {
cpu = 1000
}
kill_signal = "SIGINT"
kill_timeout = "20s"
kill_signal = "SIGINT"
kill_timeout = "20s"
service {
tags = [
@ -109,6 +109,13 @@ job "garage" {
}
}
}
restart {
interval = "30m"
attempts = 10
delay = "15s"
mode = "delay"
}
}
}
}