[cod] monitoring script

Mark J. DeFilippis defilm at acm.org
Sat Oct 22 12:08:59 EDT 2005


This is very short and simple for those that need to only run one server.
You will have to modify it to support more than one server. But it has
some nice potential to follow it's form and keep it simple and modify
it, where you would run one of these per server.  You would then only
have to change the variable you look for in the script from "ded" to
something else....  (Such as greping the PID... and searching for said
PID sounds like it will work nicely to support multiple servers on
on box... :wink:  )

That might be more useful if someone wants to make the small
changes for folks?  How about a script regexp guy out there that
has had coffee?

I gota get some coffee. :)


At 08:41 AM 10/20/2005, you wrote:
>"urn:schemas-microsoft-com:vml" xmlns:o = 
>"urn:schemas-microsoft-com:office:office" xmlns:w = 
>"urn:schemas-microsoft-com:office:word">
> >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: <mailto:support at eliott-ness.com>support
>To: <mailto:cod at icculus.org>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: <mailto:defilm at acm.org>Mark J. DeFilippis
>
>To: <mailto:cod at icculus.org>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                    <mailto:defilm at acm.org>defilm at acm.org
>                                       <mailto:defilm at ieee.org>defilm at ieee.org

S2-------------------------------------------------------------------------------
Mark J. DeFilippis, Ph. D EE          defilm at acm.org
                                       defilm at ieee.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20051022/039a7d41/attachment.htm>


More information about the Cod mailing list