initial commit (uploading from fujitsu-server)

This commit is contained in:
2020-12-29 12:17:11 +01:00
commit e5853fab5a
4 changed files with 121 additions and 0 deletions

33
bukkit-start Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
# ×=================================×
# | bukkit-start by Elias Schriefer |
# ×=================================×
if [ "$1" = "-h" ]
then
echo "bukkit-start [option]"
echo
echo "Options:"
echo " -h Show help"
exit 0
fi
# Get the bukkit server status: is it running or stopped?
# We don't need echo, but thx anyways...
bukkit-status > /dev/null
if [ $? -gt 0 ]
then
# If the server is stopped, go into the server directory, ...
cd /media/games/bukkit/
# start the screen with Socket name & title "bukkit"
# and run the start script
sudo screen -dmS bukkit -t bukkit ./Start.sh
# Now gimme my suxesvul eksit koud...
true
else
# or my unsuxesvul eksit koud...
false
fi
# and eksit wif that eksit koud
exit $?