mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
script checks: use cat instead of ls for exit code agreement
This commit is contained in:
@@ -45,7 +45,7 @@ job "group_check" {
|
||||
task = "test"
|
||||
interval = "2s"
|
||||
timeout = "2s"
|
||||
command = "ls"
|
||||
command = "cat"
|
||||
args = ["${NOMAD_TASK_DIR}/alive-2b"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ job "task_check" {
|
||||
type = "script"
|
||||
interval = "2s"
|
||||
timeout = "2s"
|
||||
command = "ls"
|
||||
command = "cat"
|
||||
args = ["${NOMAD_TASK_DIR}/alive-2b"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user