From ca88cdc091cd8bc9e3e25b46a90d07ccadb5405d Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 20 Sep 2021 19:25:23 +0200 Subject: [PATCH] change default waiting time + expand readme --- README.md | 10 ++++++++++ status-server.sh | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b27196a..5384cc3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # status simple script to act as a status page + +# how to run +the script uses the environment values ping_hosts and http_hosts to select the targets, if youre running them from the cli, you most likely need to export them before like +```bash +export ping_hosts="localhost localhost" && export http_hosts="https://duck.com https://google.com" && ./status.sh +``` +- do not quote individual hosts +- https needs to specified most of the time to avoid 308s + +for running the script in docker, see the included compose file diff --git a/status-server.sh b/status-server.sh index 6250577..6f7c63f 100755 --- a/status-server.sh +++ b/status-server.sh @@ -71,6 +71,6 @@ while true;do main http_results="" ping_results="" - sleep 5 + sleep 2m clear done