script checks: use cat instead of ls for exit code agreement

This commit is contained in:
Tim Gross
2019-09-06 11:17:00 -04:00
parent 863339d65a
commit f856cd4c58
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ job "group_check" {
task = "test"
interval = "2s"
timeout = "2s"
command = "ls"
command = "cat"
args = ["${NOMAD_TASK_DIR}/alive-2b"]
}
}

View File

@@ -39,7 +39,7 @@ job "task_check" {
type = "script"
interval = "2s"
timeout = "2s"
command = "ls"
command = "cat"
args = ["${NOMAD_TASK_DIR}/alive-2b"]
}
}