[cod] monitoring script

support support at eliott-ness.com
Thu Oct 20 08:57:14 EDT 2005


On 10/18/05, Geoff Goas <gitman at gmail.com> wrote:

> i know this has been mailed before, but does anyone have a nice shell 

> script that will monitor my cod/uo server to see if it has crashed and 

> will restart it if it has?

 

 

That s exactly what asked Geoff Goas

A monitoring script of a process that will restart it if dead

This case is for a Moh  but change for what you want 

 

 

  _____  

De : Jay Vasallo [mailto:jayco1 at charter.net] 
Envoyé : jeudi 20 octobre 2005 14:41
À : cod at icculus.org
Objet : Re: [cod] monitoring script

 

>And all of you   you should remember the first day u were such bad newbies
crying for help 

 

Nice script. You should explain it for the people who really don't
understand.

 

 

----- Original Message ----- 

From: support <mailto:support at eliott-ness.com>  

To: cod at icculus.org 

Sent: Thursday, October 20, 2005 7:12 AM

Subject: RE: [cod] monitoring script

 

Here s a script from Daniel Rudolph 

 

 

 

#!/bin/sh 
# 
# Moh Server startup with automatic restart 
# you need to kill the script to kill the server 
# 
# (c) Daniel Rudolph 2003 
#  <mailto:junkmail at daniel-rudolph.de> junkmail at daniel-rudolph.de 
# 
######################################################## 
######################CONFIG############################ 
MOHPATH="/home/daniel/Mohaa" 
CONFIGFILE="mkf.cfg" 
LOGFILE="/home/daniel/Mohaa/log.txt" 
SERVERIP="195.37.58.234" 
SERVERPORT="12203" 
OPTIONS="+set dedicated 2 +set sv_chatter 1 +exec $CONFIGFILE +set chat 1
+set developer 2 +set logfile 3" 
######################CONFIG END######################## 


##################################### 
#if you change that change the script to!! 
MOHEXE="mohaa_lnxded" 
##################################### 
while [  true ]; do 
T1=`ps -A | grep $MOHEXE | tail -c 4` 
if [ ! "$T1" = "ded" ];  then 
    cd $MOHPATH 
    ./$MOHEXE +set net_ip $SERVERIP +set net_port $SERVERPORT $OPTIONS 2&>
$LOGFILE 
fi 
done

 

 

And all of you   you should remember the first day u were such bad newbies
crying for help 

 

 


  _____  


De : Jay Vasallo [mailto:jayco1 at charter.net] 
Envoyé : jeudi 20 octobre 2005 13:45
À : cod at icculus.org
Objet : Re: [cod] monitoring script

 

Hey Doc,

 

You get this working correctly on RHe4? Damn supervise won't start and I had
to add this line:

 

/bin/csh -cf '/command/svscanboot &' &

to the /etc/rc.local file and oit works after boot up. I notice that upon
install the initab is changed. I will just have to look at the code and find
out why otherwise but if you did figure it out, send me the changed files if
you would.

 

Thanks in advance.

 

Jay

-

 

 

----- Original Message ----- 

From: Mark J. DeFilippis <mailto:defilm at acm.org>  

To: cod at icculus.org 

Sent: Thursday, October 20, 2005 6:40 AM

Subject: Re: [cod] monitoring script

 


I sent quite a few email's out.
Everyone got it working? No one?  Yea? Nah?

Any help needed?  Email me off line.






S1--------------------------------------------------------------------------
-----
Mark J. DeFilippis                    defilm at acm.org
                                      defilm at ieee.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20051020/2775e1bd/attachment.htm>


More information about the Cod mailing list