Add 'checks/Minecraft_Server'

This commit is contained in:
deepend 2023-07-08 14:12:03 +00:00
parent 7a6bbb401c
commit 83c765afdd
1 changed files with 10 additions and 0 deletions

10
checks/Minecraft_Server Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
export SITE=$1
timeout 2 bash -c "</dev/tcp/${SITE}/25565" > /dev/null
if [ $? -ne "0" ]
then
exit 1
else
exit 0
fi