Wait until a service responds to healthchecks or the timeout elapses
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with SimpleFinance:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
LICENSE
Makefile
README.md

README.md

waitforit

Wait until a service responds to healthchecks or the timeout elapses

Usage

The simple usage is

waitforit -p 8080

Which will attempt to connect every 5 seconds to http://localhost:8080/healthcheck for up to 1 minute. Each individual connection attempt is allowed up to 2 seconds.

For advanced usage see waitforit -h, displayed below for reference

Usage: waitforit [options] -p PORT

Options:
  -p PORT            port for the healthceck
  -H HOST            host to check [default: localhost]
  -u URL             url to check [default: /healtcheck]

  -i INTERVAL        interval between checks in seconds [default: 5]
  -t TOTAL_TIMEOUT   total time to wait in seconds [default: 60]
  -c CON_TIMEOUT     max time an individual check is allowed [default: 2]