*Update to Mangos 6938. (Only build for VC9)

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-24 09:58:26 -06:00
parent c81299e653
commit 3cb4e7c716
171 changed files with 11207 additions and 5092 deletions
-18
View File
@@ -1,18 +0,0 @@
#!/bin/bash
# Massive Network Game Object Server
# Monitoring Script
pid=`ps ax | awk '($5 ~ /mangos-worldd/) { print $1 }'`
cpu=`top -b -n 1 -p $pid | awk '($12 ~ /mangos-worldd/) { print $9 }'`
#echo $pid
#echo $cpu
intcpu=${cpu%.*}
#echo $intcpu
if [ "$intcpu" -gt "95" ]
then
kill -9 $pid
echo "Killed MaNGOS for exceeding it's cpu limit."
echo `date` ", Killed MaNGOS for $intcpu% CPU Usage." >> serverlog
else
echo "MaNGOS Passes the cpu test."
fi