aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/trinitycore/monitor-mangosd18
-rw-r--r--src/trinitycore/run-mangosd14
2 files changed, 0 insertions, 32 deletions
diff --git a/src/trinitycore/monitor-mangosd b/src/trinitycore/monitor-mangosd
deleted file mode 100644
index a740ae5e8fa..00000000000
--- a/src/trinitycore/monitor-mangosd
+++ /dev/null
@@ -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
diff --git a/src/trinitycore/run-mangosd b/src/trinitycore/run-mangosd
deleted file mode 100644
index 4a146804e81..00000000000
--- a/src/trinitycore/run-mangosd
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-# Trinity Server
-# autorestart Script
-
-while :
-do
- echo "TrinityCore daemon restarted"
- echo `date` >> crash.log &
- ./mangosd | tail -n 20 >> crash.log
- echo " " >> crash.log &
- pid=`ps ax | awk '($5 ~ /trinitycore/) { print $1 }'`
- wait $pid
- echo `date` ", TrinityCore daemon crashed and restarted." >> serverlog
-done