Debian 7
L2-scripts-vip-source
stdout.log
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rrdcpu_x64 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at java.lang.ClassTransform.(Unknown Source)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: l2s.login.L2LoginServer. Program will exit.
LoginServer_loop.sh
#!/bin/sh
# ======== JVM settings =======
javaopts=" -Xms32m"
javaopts="$javaopts -Xmx64m"
javaopts="$javaopts -XX:SurvivorRatio=8"
javaopts="$javaopts -Xincgc"
javaopts="$javaopts -XX:+AggressiveOpts"
# не изменять
java_settings=" -Dfile.encoding=UTF-8"
java_settings="$java_settings -Djava.net.preferIPv4Stack=true"
java_settings="$java_settings -Dl2nextgen.library=./lib"
java_settings="$java_settings -Xbootclasspath/p:./lib/jsr166.jar"
while :; do
./backup_db.sh
mv log/java-0.log "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
mv log/error-0.log "log/`date +%Y-%m-%d_%H-%M-%S`_error.log"
mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
nice -n -2 java -server $java_settings $javaopts -cp ./lib/*:l2Sserver.jar l2s.login.L2LoginServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
sleep 10;
done