Sveiki nepasileidzia gameServer.sh ,kai bandau paleisti ./startGameServer.sh gaunu atsakyma ,kad "./startGameServer.sh: ./GameServer_loop.sh: not found" visi failai turi leidimus "chmod +x" RegisterGameServer.sh ir kiti sh failai veikia.
startGameServer.sh file config:
#! /bin/sh
./GameServer_loop.sh &
GameServer_loop.sh file config:
#!/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 -Xms1024m -Xmx1024m -cp ./../libs/*:L2JLisvus.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done