2018-03-19 15:40:36 +00:00
|
|
|
job "test" {
|
|
|
|
datacenters = ["dc1"]
|
2018-03-29 16:35:45 +00:00
|
|
|
type = "service"
|
2018-03-19 15:40:36 +00:00
|
|
|
|
|
|
|
group "t" {
|
|
|
|
count = 3
|
2018-03-29 16:35:45 +00:00
|
|
|
|
2018-03-19 15:40:36 +00:00
|
|
|
task "t" {
|
|
|
|
driver = "raw_exec"
|
2018-03-29 16:35:45 +00:00
|
|
|
|
2018-03-19 15:40:36 +00:00
|
|
|
config {
|
|
|
|
command = "bash"
|
|
|
|
args = ["-c", "lol 5000"]
|
|
|
|
}
|
|
|
|
}
|
2018-03-29 16:35:45 +00:00
|
|
|
|
2018-03-19 15:40:36 +00:00
|
|
|
restart {
|
|
|
|
attempts = 0
|
|
|
|
delay = "0s"
|
|
|
|
mode = "fail"
|
|
|
|
}
|
|
|
|
}
|
2018-03-29 16:35:45 +00:00
|
|
|
}
|