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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..