I've been searching for a plugin to restart my server every X hours. So far I've found this little plugin http://dev.bukkit.org/server-mods/smart-restart/files/- it was the only one with 1.2.5.
The problem is I'm semi-retarded when it comes to Linux, I only know the basic commands to get around. The guy who built the plugin has a script there:
#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
while : ; do
echo "run server now , you can't close"
java -Xmx1024M -Xms1024M -jar craftbukkit.jar
echo "Restart after 5 seconds , you can close now"
sleep 1
echo "Restart after 4 seconds , you can close now"
sleep 1
echo "Restart after 3 seconds , you can close now"
sleep 1
echo "Restart after 2 seconds , you can close now"
sleep 1
echo "Restart after 1 seconds , you can close now"
sleep 1
done
made for Linux users. The problem is I have no idea how to set it up
properly.
I'm using Ubuntu 12.10 with Screen installed.
Can anybody explain to me like I'm 5 how to properly setup this script?