diff --git a/extra/etc/check-containers b/extra/etc/check-containers index 59cf661..457c582 100644 --- a/extra/etc/check-containers +++ b/extra/etc/check-containers @@ -1,6 +1,13 @@ #!/usr/bin/env bash # check-containers # +# save to +# /usr/local/bin/check-containers +# +# bash/zsh +# alias containers='CHECK_CONTAINERS_QUIET=1 CHECK_CONTAINERS_IGNORE_ERRORS=1 bash /usr/local/bin/check-containers' +# alias containers-watch='CHECK_CONTAINERS_QUIET=1 CHECK_CONTAINERS_IGNORE_ERRORS=1 bash /usr/local/bin/check-containers monitor' +# # statuses: # online = http response exactly 200 # error = reachable but non-200 response @@ -12,6 +19,9 @@ # 1 = at least one error # 2 = at least one offline # 3 = runtime/config/dependency error +# +# ================================================================================ + set -u set -o pipefail