added monitoring for gopher and gemini

This commit is contained in:
root committed 2024-12-03 19:48:57 -07:00
1 parent 2a30ff9643
commit 2ac3716261
3 files changed
+25 -1

No files matched your search

Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
export SITE=$1
# Attempt to connect to the Gemini server on port 1965
timeout 2 bash -c "</dev/tcp/${SITE}/1965" &> /dev/null
if [ $? -ne 0 ]; then
exit 1
else
exit 0
fi