7c282f174b
There was a bug in jobspec parsing, a bug in CheckRestart merging, and a bug in CheckRestart canonicalization. All are now tested.
22 lines
446 B
HCL
22 lines
446 B
HCL
job "service_check_restart" {
|
|
type = "service"
|
|
group "group" {
|
|
task "task" {
|
|
service {
|
|
name = "http-service"
|
|
check_restart {
|
|
limit = 3
|
|
grace = "10s"
|
|
ignore_warnings = true
|
|
}
|
|
check {
|
|
name = "random-check"
|
|
type = "tcp"
|
|
port = "9001"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|