- Хроники
- Interlude
- Исходники
- Отсутствуют
- Сборка
- pwsoft
при запуске gameserver
stdout.log выдает ошибку - нет директории
./GameServer_loop.sh: line 10: /home/java/jdk1.8.0_66/bin/java: No such file or directory
java установлена - но как узнать в какую папку???
bash GameServer_loop.sh
stdout.log выдает ошибку - нет директории
./GameServer_loop.sh: line 10: /home/java/jdk1.8.0_66/bin/java: No such file or directory
java установлена - но как узнать в какую папку???
Код:
~]# java -Xmx100m -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
bash GameServer_loop.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"
/home/java/jdk1.8.0_232/bin/java -server -Dfile.encoding=UTF-8 -XX:AutoBoxCacheMax=10000 -XX:+RelaxAccessControlCheck -XX:+UseFastAccessorMethods -XX:+AlwaysPreTouch -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:+ClassUnloading -XX:MaxGCPauseMillis=25 -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=8 -XX:+CMSParallelRemarkEnabled -XX:+UseAdaptiveGCBoundary -XX:MaxTenuringThreshold=6 -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:CompileThreshold=1000 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxNewSize=144m -XX:NewSize=144m -XX:+UseBiasedLocking -Xms512m -Xmx2048m -cp ./../libs/ecj.jar:./../libs/guava-17.0.jar:./../libs/bsf.jar:./../libs/jython.jar:./../libs/cademia.jar:./../libs/bsh-2.0b4.jar:./../libs/java-engine.jar:./../libs/c3p0-0.9.1.2.jar:./../libs/bonecp-0.8.0.jar:./../libs/log4j-1.2.15.jar:./../libs/slf4j-api-1.7.12.jar:./../libs/slf4j-nop-1.7.12.jar:./../libs/javolution-5.5.1.jar:./../libs/commons-logging-1.1.jar:./../libs/mysql-connector-java-5.1.36-bin.jar:./../libs/antifarm.jar:./../libs/it_mantaray.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done