0 Members and 1 Guest are viewing this topic.
#/bin/bash/# Soldat (Game server)export LD_LIBRARY_PATH=/soldat:$LD_LIBRARY_PATHcase "$1" in  start) ./soldatserver 23073 16 soldat.ini maplist.txt & echo "Starting Soldat Server";;  stop) pid=$(ps ax|grep soldatserver|grep -v grep | awk '{print $1}') kill ${pid} > /dev/null 2>&1;;  *) echo "Use: 'basename $0' { start | stop }" exit 64;;esac
1) On server run: apache, cs 1.6, quake 3, pvpgn2) ram =2gb, cpu load ~ 20%.3) Most likely is casual. I tried to change Ãà ð various maps. The mistake occurs after change of a map.
my server.sh:Code: [Select]#/bin/bash/# Soldat (Game server)export LD_LIBRARY_PATH=/soldat:$LD_LIBRARY_PATHcase "$1" in  start) ./soldatserver 23073 16 soldat.ini maplist.txt &
#/bin/bash/# Soldat (Game server)export LD_LIBRARY_PATH=/soldat:$LD_LIBRARY_PATHcase "$1" in  start) ./soldatserver 23073 16 soldat.ini maplist.txt &
Code: [Select] echo "Starting Soldat Server";;Â Â stop) pid=$(ps ax|grep soldatserver|grep -v grep | awk '{print $1}') kill ${pid} > /dev/null 2>&1;;Â Â *) echo "Use: 'basename $0' { start | stop }" exit 64;;esacBy the way by it scropts server of the soldier to not switch off.Even through "kill" it does not die. It is necessary to do "kill -9"
echo "Starting Soldat Server";;Â Â stop) pid=$(ps ax|grep soldatserver|grep -v grep | awk '{print $1}') kill ${pid} > /dev/null 2>&1;;Â Â *) echo "Use: 'basename $0' { start | stop }" exit 64;;esac
If to start directly, through "./soldatserver", after change of a map the order. However approximately after hour of the test the problem has given about itself to know. And "./soldatserver &" also is not started. Or is started not by background process.
Date Posted: July 19, 2006, 04:56:30 AMNow played on 85.25.131.131. Firstly all îê. Then has thrown out from game and steel the same problems that at me. Probably I am not lonely
maplist.txt, this is the problem: the file is actually mapslist.txt
kill -9 ${pid} > /dev/null 2>&1