Skip to content

Commit

Permalink
Merge pull request #41 from jnc74743/master
Browse files Browse the repository at this point in the history
Allow the healthcheck to be run on both the xrootd-gateway and xrootd…
  • Loading branch information
jose-caballero authored Sep 7, 2023
2 parents 9627deb + 1db03c5 commit f6ad3b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xrootd/xrootd-healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ if [ ! -s /etc/ceph/ceph.client.xrootd.keyring ]; then
exit 1
fi

nc -z localhost 1094
# Monitor ports for both the gateway and proxy xrootd service.
# We only need one of these monitors to succeed for the check to pass
nc -z localhost 1094 || nc -z localhost 1095
if [ "$?" -ne 0 ]; then
echo "Gateway does not listen the required port"
exit 1
Expand Down

0 comments on commit f6ad3b1

Please sign in to comment.