Current patches of VaeSoli roleplay server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Runners.patch 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. diff --git a/dist/game/run.sh b/dist/game/run.sh
  2. index e69de29..6ea8c6b 100644
  3. --- a/dist/game/run.sh
  4. +++ b/dist/game/run.sh
  5. @@ -0,0 +1,12 @@
  6. +#!/bin/bash
  7. +
  8. +while :; do
  9. + [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
  10. + [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
  11. + java -server -Dpython.cachedir=../cachedir -Xms1024m -Xmx1792m -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -jar l2jserver.jar > log/stdout.log 2>&1 &
  12. + GS_PID=$!
  13. + echo $GS_PID > game.pid
  14. + wait $GS_PID
  15. + [ $? -ne 2 ] && break
  16. + sleep 10
  17. +done
  18. diff --git a/dist/login/run.sh b/dist/login/run.sh
  19. index e69de29..a7a4128 100644
  20. --- a/dist/login/run.sh
  21. +++ b/dist/login/run.sh
  22. @@ -0,0 +1,12 @@
  23. +#!/bin/bash
  24. +
  25. +while :; do
  26. + [ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
  27. + [ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
  28. + java -server -Xms128m -Xmx256m -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -jar l2jlogin.jar > log/stdout.log 2>&1 &
  29. + LS_PID=$!
  30. + echo $LS_PID > login.pid
  31. + wait $LS_PID
  32. + [ $? -ne 0 ] && break
  33. + sleep 10
  34. +done