[check] documentation

This commit is contained in:
Bernhard "bero" Rosenkränzer (Boggins) 2025-02-17 21:09:11 +01:00
parent 9c6f4c93c6
commit 8a9d007a6f

View File

@ -1,4 +1,20 @@
#!/bin/bash
#
# Check if a service is running/working properly
#
# The script checks that the internal IP is reachable, the service
# replies on expected ports, and any public ports are reachable on
# the external IP.
#
# Further checks can be added by adding a
# /federated/services/$SERVICE/check file
#
if [ "$#" != 1 ]; then
echo "Usage: $0 <service>"
exit 1
fi
SERVICE="$1"
. /federated/lib/functions.sh