all-in-one/Containers/talk/healthcheck.sh
Simon L e6af640871 talk - improve healthcheck
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-08-17 14:22:39 +02:00

11 lines
288 B
Bash

#!/bin/bash
nc -z localhost 8081 || exit 1
nc -z localhost 8188 || exit 1
nc -z localhost 4222 || exit 1
nc -z localhost "$TALK_PORT" || exit 1
eturnalctl status || exit 1
if ! nc -z "$NC_DOMAIN" "$TALK_PORT"; then
echo "Could not reach $NC_DOMAIN on port $TALK_PORT."
exit 1
fi