Anyone Have This Script?

Discussion in 'Bukkit Help' started by Nathan C, Feb 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Nathan C

    Hi,

    Due to the
    Code:
    java.lang.ArrayIndexOutOfBoundsException: -1
    crashing, I need a script.

    I need a script that will search the server log file and execute a server restart upon finding that.

    I can have it run through 5 minute searches.

    I heard about some people have this, anyone have it that they are able to share?
    If so just PM me or post it on this thread.

    Thanks in advance,
    Nate
     
  2. Offline

    Plague

    I'd rather use a script to run the server in a loop, like
    Code:
    #!/bin/sh
    
    while true
    do
      java -jar craftbukkit.jar
      sleep 5
    done
    
    and run in in a screen, when the screen ends or is killed the loop of course dies with it, otherwise it restarts.
    The sleep is there for safety reasons when the server crashes immediately.
     
  3. Offline

    Nathan C

    Thanks, I will give this a try soon. Just getting these crashes way to often and my players lose their progress.

    I don't want to do more than 10 minute world backups. [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page