Skip to content

Commit

Permalink
final cleanup before merging
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Oct 31, 2023
1 parent 9a879a6 commit c0251de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 94 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,3 @@ EXPOSE 30978/tcp 30979/tcp 37981/tcp

# Add healthcheck
HEALTHCHECK --timeout=60s --start-period=7200s --interval=600s CMD /scripts/healthcheck.sh

# TODO
# - work out a way to test - maybe capture some output and parse it?
85 changes: 0 additions & 85 deletions autogain-org-s6-script

This file was deleted.

12 changes: 6 additions & 6 deletions rootfs/scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ if echo "$NETSTAT_AN" | grep -P "$REGEX_DUMP978_LISTENING_PORT_30978" > /dev/nul
DUMP978_LISTENING_PORT_30978="true"
fi
if [[ -z "$DUMP978_LISTENING_PORT_30978" ]]; then
echo "[$(date)][UNHEALTHY] dump978-fa not listening on port 30978."
echo "[$(date)][UNHEALTHY] dump978-fa not listening on port 30978"
EXITCODE=1
else
echo "[$(date)][HEALTHY] dump978-fa listening on port 30978."
echo "[$(date)][HEALTHY] dump978-fa listening on port 30978"
fi

# Make sure dump978-fa is listening on port 30979
Expand All @@ -27,10 +27,10 @@ if echo "$NETSTAT_AN" | grep -P "$REGEX_DUMP978_LISTENING_PORT_30979" > /dev/nul
DUMP978_LISTENING_PORT_30979="true"
fi
if [[ -z "$DUMP978_LISTENING_PORT_30979" ]]; then
echo "[$(date)][UNHEALTHY] dump978-fa not listening on port 30979."
echo "[$(date)][UNHEALTHY] dump978-fa not listening on port 30979"
EXITCODE=1
else
echo "[$(date)][HEALTHY] dump978-fa listening on port 30979."
echo "[$(date)][HEALTHY] dump978-fa listening on port 30979"
fi

# Make sure socat/uat2esnt is listening on port 37981
Expand All @@ -40,10 +40,10 @@ if echo "$NETSTAT_AN" | grep -P "$REGEX_SOCAT_LISTENING_PORT_37981" > /dev/null
SOCAT_LISTENING_PORT_37981="true"
fi
if [[ -z "$SOCAT_LISTENING_PORT_37981" ]]; then
echo "[$(date)][UNHEALTHY] socat/uat2esnt not listening on port 37981."
echo "[$(date)][UNHEALTHY] socat/uat2esnt not listening on port 37981"
EXITCODE=1
else
echo "[$(date)][HEALTHY] socat/uat2esnt listening on port 37981."
echo "[$(date)][HEALTHY] socat/uat2esnt listening on port 37981"
fi

# Make sure we're receiving messages from the SDR
Expand Down

0 comments on commit c0251de

Please sign in to comment.