mirror of
https://github.com/ThunixdotNet/monurbox.git
synced 2026-11-04 18:35:38 +00:00
Add 'checks/Minecraft_Server'
This commit is contained in:
1 parent
7a6bbb401c
commit
83c765afdd
1 file changed
+10
@@ -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
|
||||
Reference in new issue
Block a user