Wait Until Up
Install npm i -g wuu
Then you can use this in shell scripts, like so
# /bin/bashwuu --port 5672 --host rabbitmq --timeout 60 --retry 2wuu --port 5432 --host postgres --timeout 60 --retry 2 # ok rabbit and postgres runningnode ./server.js
Or use in a node script:
const wuu =