Skip to content
Snippets Groups Projects
Commit 7d8cfc63 authored by TheBroTMv2's avatar TheBroTMv2
Browse files

cleanup health.sh

parent cf65c5dd
No related branches found
No related tags found
1 merge request!5Played around
Pipeline #2626 passed
#!/bin/bash
screen -S mc -X select . ; SCRUN=$? #Queryabfrage um rauszufindne ob screensession noch aktiv ist. Return: bool
if [ ${SCRUN} = 0 ]
then # Server läuft, zeige letzte zeilen vom log an...
then # Server läuft
exit 0
else # Server läuft nicht, abgestürzt, gestoppt über minecraft /stop
else # Server läuft nicht
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment