Sveiki turiu pora klausimu. Kaip isjunkti laivo prieplauku zinutes. Pvz kai buni Dino saloi ar seip mieste kuriam priklauso prieplauka meta zinutes. Geriausei kaip isvis isjunkti ta laiva.
Antras klausimas turiu 20k Ramu serverine linus kaip isdalinti ramus login ir game server? Ar jie automatiskai keiciasi. Jei ne ka redaguoti kad tvarkingai isdalinciau?
#!/bin/bash
err=1
until [ $err == 0 ];
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"
nice -n -2 java -Xmx512m -cp ./libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1
err=$?
# /etc/init.d/mysql restart
sleep 10;
done
#!/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 -Xmx2G -cp ./libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done