Jump to content
  • 0

l2jteon On debian linux


Question

5 answers to this question

Recommended Posts

  • 0
Posted

L2j Teon doesnt!

 

GS

#!/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/`date +%Y-%m-%d_%H-%M-%S`_java.log"

[ -f log/stdout.log  ] && mv log/stdout.log "log/`date  +%Y-%m-%d_%H-%M-%S`_stdout.log"

java -Xms512m -Xmx512m -cp  bsf.jar:commons-logging-1.1.jar:java-engine.jar:jython.jar:mysql-connector-java-5.1.6-bin.jar:bsh-engine.jar:c3p0-0.9.1.2.jar:javolution.jar:bsh-2.0b5.jar:ecj.jar:jython-engine.jar:mmocore.jar:l2jteon.jar  net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1

[ $? -ne 2 ]  && break

# /etc/init.d/mysql restart

sleep 10

done

 

LS

#!/bin/bash

 

err=1

until [ $err == 0 ];

do

[ -f log/java0.log.0  ] && mv log/java0.log.0 "log/backup/`date  +%Y-%m-%d_%H-%M-%S`_java.log"

[ -f log/stdout.log ] && mv  log/stdout.log "log/backup/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"

nice -n -2  java -Xms128m -Xmx128m -cp  c3p0-0.9.1.2.jar:mysql-connector-java-5.1.6-bin.jar:javolution.jar:mmocore.jar:l2jteon.jar  net.sf.l2j.loginserver.L2LoginServer > log/stdout.log  2>&1

err=$?

# /etc/init.d/mysql restart

sleep 10;

done

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...