Jump to content

Question

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
4 minutes ago, wongerlt said:

paste here ur start.sh

start.sh

 

# !/bin/sh
./loop.sh &

 

and loop.sh 

# !/bin/sh
err=1
until [ $err == 0 ];
do
    [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/z_`date +%Y-%m-%d_%H-%M-%S`_java.log"
    #[ -f log/game.log ] && mv log/game.log "log/z_`date +%Y-%m-%d_%H-%M-%S`_game.log"
    [ -f log/stdout.log ] && mv log/stdout.log "log/z_`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
    [ -f log/give_items/EnterWorld.txt ] && mv log/give_items/EnterWorld.txt "log/give_items/z_`date +%Y-%m-%d_%H-%M-%S`_EnterWorld.txt"
    [ -f log/give_items/GiveItem.txt ] && mv log/give_items/GiveItem.txt "log/give_items/z_`date +%Y-%m-%d_%H-%M-%S`_GiveItem.txt"
    #java -server -Dfile.encoding=UTF-8 -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:CompileThreshold=1000 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxNewSize=144m -XX:NewSize=144m -XX:+UseBiasedLocking -Xms2G -Xmx7G -Djava.net.preferIPv4Stack=true -cp config:../libs/*;./extensions/* ru.catssoftware.gameserver.L2GameServer > log/stdout.log 2>&1
    java -server -Xmx10G -Dfile.encoding=UTF-8 -cp ../libs/*:core-gvb.jar ru.catssoftware.gameserver.L2GameServer > log/stdout.log 2>&1
    err=$?
    #sleep 10;
done

Then i opened logs i see this error : Error: Could not find or load main class ru.catssoftware.gameserver.L2GameServer

Edited by Prox1mus
  • 0
Posted

try add after first line

cd /your_path_/to_start.sh/

example:

cd /root/gameserver/

if not work try add full path to all files example:

/root/gameserver/log/java0.log.0  all where u see

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...