minecraft-bukkit-start-script/bukkit-status
2022-01-15 14:05:19 +01:00

37 lines
755 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# ×==================================×
# | bukkit-status by Elias Schriefer |
# ×==================================×
server=""
if [ "$1" = "-h" ]
then
echo "bukkit-status [option]"
echo
echo "Options:"
echo " -h Show help"
exit 0
fi
# Is there a window with name "bukkit" already running in screen?
# We don't need your fukcing text, ew...
screen -ls $server > /dev/null
if [ $? -eq 0 ]
then
# If the screen window is indeed running, shout it in my
# face, I wanna know...
echo running
# Now gimme my suxesvul eksit koud...
true
else
# If the screen window is not running, shout that in my
# face, too, I wanna know...
echo stopped
# Gimme my unsuxesvul eksid koud...
false
fi
# and eksit wif that eksid koud
exit $?