[check] documentation
This commit is contained in:
parent
9c6f4c93c6
commit
8a9d007a6f
16
bin/check
16
bin/check
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user