diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-12 22:40:37 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-12-12 22:43:10 -0800 |
commit | f9563edf69f083287630f4b17db70d97524196d6 (patch) | |
tree | 495a75932bf493c4a2afb94f924e3efde4ea70a8 /src/tool/mapchecker.sh | |
parent | 608f959900968e83fd25231c72308fc608742dd5 (diff) | |
download | tmwa-f9563edf69f083287630f4b17db70d97524196d6.tar.gz tmwa-f9563edf69f083287630f4b17db70d97524196d6.tar.bz2 tmwa-f9563edf69f083287630f4b17db70d97524196d6.tar.xz tmwa-f9563edf69f083287630f4b17db70d97524196d6.zip |
Delete old tools
If there was anything you actually used, tell me.
Diffstat (limited to 'src/tool/mapchecker.sh')
-rw-r--r-- | src/tool/mapchecker.sh | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/tool/mapchecker.sh b/src/tool/mapchecker.sh deleted file mode 100644 index 7250c34..0000000 --- a/src/tool/mapchecker.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -athena_dir="/home/athena/658/" - -while [ true ] ; do - -if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then - #echo `date` " -- map-server crashed - restarting" - echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log - killall -9 map-server - cd $athena_dir - nohup ./map-server ./conf/map_athena.conf ./inter_athena.conf & - sleep 240 - #sleep 40 #for fast pc's remove the "#" at the beginning of the line and delete the line above -fi - - -if [ ` ps fauxw | grep map-server | grep -v grep | awk '{print $3}' | awk 'BEGIN{FS="."} {print $1}' ` -gt 10 ];then - #echo `date` " -- mapserver cpuload over 10 - restarting" - echo `date` " -- mapserver cpuload over 10 - restarting" >> /var/log/athena_status.log - killall -9 map-server - cd $athena_dir - nohup ./map-server ./conf/map_athena.conf ./inter_athena.conf & - sleep 240 - #sleep 40 #for fast pc's remove the "#" at the beginning of the line and delete the line above - #echo `date` " -- restarted" - echo `date` " -- restarted" >> /var/log/athena_status.log -fi - -if [ ` ps fauxw | grep char-server | grep -v grep | wc -l ` -eq 0 ];then - #echo `date` " -- char server crashed - restarting" - echo `date` " -- char server crashed - restarting" >> /var/log/athena_status.log - killall -9 char-server - cd $athena_dir - nohup ./char-server ./conf/char_athena.conf ./conf/inter_athena.conf & - #echo `date` " -- restarted" - echo `date` " -- restarted" >> /var/log/athena_status.log - -fi - -if [ ` ps fauxw | grep login-server | grep -v grep | wc -l ` -eq 0 ];then - #echo `date` " -- login server crashed - restarting" - echo `date` " -- login server crashed - restarting" >> /var/log/athena_status.log - killall -9 login-server - cd $athena_dir - nohup ./login-server ./conf/login_athena.conf & - #echo `date` " -- restarted" - echo `date` " -- restarted" >> /var/log/athena_status.log - -fi - - -#echo `date` " -- everything is fine" -echo `date` " -- everything is fine" >> /var/log/athena_status.log -sleep 30 -done |