Need Help - CentOS Bukkit Server Restarter

Discussion in 'Bukkit Help' started by mig4ng, Aug 4, 2012.

Thread Status:
Not open for further replies.
  1. Hi,
    Like the title says, I need a server restarter do my server that's 24/7 and after 5 hours start to lag and bugging. I tried a lot of thing, one of them simple restart.
    At this moment the server is reloading 1 time per hour, but i guess this is lagging more the server.
    I only need help creating the start.sh to the server, becaause everytime I use while/do/done the server says it's no recozonionable.
    this happens when i load with screen sh start.sh, when i load ./start.sh say that to.
    Code:
    #!/bin/sh
                BINDIR=$(dirname "$(readlink -fn "$0")")
                cd "\$BINDIR"
                while true
                do
                    java -Xmx1024M -Xms1024M -jar craftbukkit.jar
                    echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
                    echo "Rebooting in:"
                    for i in 5 4 3 2 1
                    do
                        echo "$i..."
                        sleep 1
                    done
                    echo "Rebooting now!"
                done
    Thanks for helping

    PS: I Need Help quickly, because i have a 24/7 server and i'm loosing people cause of this :S

    help plz, i'm disapointing lots of users :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
Thread Status:
Not open for further replies.

Share This Page