Скинул вам в скайп ваши SH. Должно работать .
# !/bin/bash
# exit codes of GameServer:
# 0 normal shutdown
# 2 reboot attempt
while :; do
[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/z_`date +%Y-%m-%d_%H-%M-%S`_java.log"
[ -f log/stdout.log ] && mv log/stdout.log "log/z_`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
java -server -Dfile.encoding=UTF-8 -Xincgc -Xms2048m -Xmx2048m -cp ./libs/smrt.jar:config:./libs/*:./libs/bsf.jar:./libs/bsh-2.0b4.jar:./libs/bonecp-0.8.0.jar:./libs/slf4j-api-1.6.3.jar:./libs/slf4j-nop-1.6.3.jar:./libs/commons-lang3-3.3.2.jar:./libs/commons-logging-1.1.jar:./libs/jython.jar:./libs/ecj.jar:./libs/java-engine.jar:./libs/commons-pool-1.5.4.jar:./libs/guava-17.0.jar:./libs/javolution-5.5.1.jar:./libs/mysql-connector-java-5.1.35-bin.jar:./libs/log4j-1.2.15.jar:./libs/it_mantaray.jar ru.akumu.smartguard.SmartGuard net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done