summaryrefslogtreecommitdiff
path: root/docker/zaqar/check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/zaqar/check.sh')
-rwxr-xr-xdocker/zaqar/check.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/zaqar/check.sh b/docker/zaqar/check.sh
new file mode 100755
index 000000000..4b3cdbb46
--- /dev/null
+++ b/docker/zaqar/check.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+status=$(curl -s -w "%{http_code}" -o /dev/null http://localhost:8888/v1/queues)
+
+if [[ $status -ne 200 && $status -ne 204 ]]; then
+ echo "ERROR($status): queue list failed"
+ exit $status
+fi
+
+exit 0