Skip to content

Commit

Permalink
Use dig instead of ncat
Browse files Browse the repository at this point in the history
Follows #8
  • Loading branch information
lens0021 committed May 1, 2021
1 parent 30da11b commit 034ae4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jobs-consul-test/fastcgi.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ job "fastcgi" {
args = [
"-c",
join(";", [
"while ! ncat --send-only 127.0.0.1 3306 < /dev/null; do sleep 1; done",
"while ! ncat --send-only 127.0.0.1 11211 < /dev/null; do sleep 1; done"
"while [ -z \"$(dig +noall +answer @localhost mysql.service.dc1.consul)\" ]; do sleep 1; done",
"while [ -z \"$(dig +noall +answer @localhost memcached.service.dc1.consul\)" ]; do sleep 1; done"
])
]
}
Expand Down
2 changes: 1 addition & 1 deletion jobs-consul-test/parsoid.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ job "parsoid" {
driver = "exec"
config {
command = "sh"
args = ["-c", "while ! ncat --send-only 127.0.0.1 80 < /dev/null; do sleep 1; done"]
args = ["-c", "while [ -z "$(dig +noall +answer @localhost http.service.dc1.consul)" ]; do sleep 1; done"]
}
}

Expand Down

0 comments on commit 034ae4c

Please sign in to comment.