<html>
<body>
<font size=3><br>
This is very short and simple for those that need to only run one
server.<br>
You will have to modify it to support more than one server. But it
has<br>
some nice potential to follow it's form and keep it simple and
modify<br>
it, where you would run one of these per server.&nbsp; You would then
only<br>
have to change the variable you look for in the script from
&quot;ded&quot; to<br>
something else....&nbsp; (Such as greping the PID... and searching for
said<br>
PID sounds like it will work nicely to support multiple servers on<br>
on box... :wink:&nbsp; )<br><br>
That might be more useful if someone wants to make the small<br>
changes for folks?&nbsp; How about a script regexp guy out there
that<br>
has had coffee?<br><br>
I gota get some coffee. :)<br><br>
<br>
At 08:41 AM 10/20/2005, you wrote:<br>
<blockquote type=cite class=cite cite>&quot;urn:schemas-microsoft-com:vml&quot;
xmlns:o = &quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w =
&quot;urn:schemas-microsoft-com:office:word&quot;&gt; <br>
</font><font face="arial" size=2>&gt;</font><font face="Times New Roman, Times" size=2>And
all of you&nbsp;&nbsp; you should remember the first day u were such bad
newbies crying for help </font><font size=3><br>
&nbsp;<br>
</font><font face="arial" size=2>Nice script. You should explain it for
the people who really don't understand.</font><font size=3><br>
&nbsp;<br>
&nbsp;<br>
</font>
<dl>
<dd>----- Original Message ----- <br>

<dd>From:</b> <a href="mailto:support@eliott-ness.com">support</a> <br>

<dd>To:</b> <a href="mailto:cod@icculus.org">cod@icculus.org</a> <br>

<dd>Sent:</b> Thursday, October 20, 2005 7:12 AM<br>

<dd>Subject:</b> RE: [cod] monitoring script<br><br>

<dd><font face="arial" size=2 color="#000080">Here s a script from Daniel
Rudolph <br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2 color="#000080">&nbsp;<br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2 color="#000080">&nbsp;<br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2 color="#000080">&nbsp;<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>#!/bin/sh <br>

<dd># <br>

<dd># Moh Server startup with automatic restart <br>

<dd># you need to kill the script to kill the server <br>

<dd># <br>

<dd># (c) Daniel Rudolph 2003 <br>

<dd>#
<a href="mailto:junkmail@daniel-rudolph.de">junkmail@daniel-rudolph.de</a></font>
<br>

<dd># <br>

<dd>######################################################## <br>

<dd>######################CONFIG############################ <br>

<dd>MOHPATH=&quot;/home/daniel/Mohaa&quot; <br>

<dd>CONFIGFILE=&quot;mkf.cfg&quot; <br>

<dd>LOGFILE=&quot;/home/daniel/Mohaa/log.txt&quot; <br>

<dd>SERVERIP=&quot;195.37.58.234&quot; <br>

<dd>SERVERPORT=&quot;12203&quot; <br>

<dd>OPTIONS=&quot;+set dedicated 2 +set sv_chatter 1 +exec $CONFIGFILE +set chat 1 +set developer 2 +set logfile 3&quot; <br>

<dd>######################CONFIG END######################## <br><br>
<br>

<dd>##################################### <br>

<dd>#if you change that change the script to!! <br>

<dd>MOHEXE=&quot;mohaa_lnxded&quot; <br>

<dd>##################################### <br>

<dd>while [&nbsp; true ]; do <br>

<dd>T1=`ps -A | grep $MOHEXE | tail -c 4` <br>

<dd>if [ ! &quot;$T1&quot; = &quot;ded&quot; ];&nbsp; then <br>

<dd>&nbsp;&nbsp;&nbsp; cd $MOHPATH <br>

<dd>&nbsp;&nbsp;&nbsp; ./$MOHEXE +set net_ip $SERVERIP +set net_port $SERVERPORT $OPTIONS 2&amp;&gt; $LOGFILE <br>

<dd>fi <br>

<dd>done<br><br>

<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="Times New Roman, Times" size=3>And all of you&nbsp;&nbsp; you should remember the first day u were such bad newbies crying for help <br>
</font><br>

<dd><font face="arial" size=2 color="#000080">&nbsp;<br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2 color="#000080">&nbsp;<br>
<hr>
<div align="center"></font></div>

<dd><font face="tahoma" size=2>De :</b> Jay Vasallo [<a href="mailto:jayco1@charter.net" eudora="autourl">mailto:jayco1@charter.net</a>] <br>

<dd>Envoyé :</b> jeudi 20 octobre 2005 13:45<br>

<dd>À :</b> cod@icculus.org<br>

<dd>Objet :</b> Re: [cod] monitoring script<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="arial" size=2>Hey Doc,<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="arial" size=2>You get this working correctly on RHe4? Damn supervise won't start and I had to add this line:<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="arial" size=2>/bin/csh -cf '/command/svscanboot &amp;' &amp;<br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2>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.<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="arial" size=2>Thanks in advance.<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="arial" size=2>Jay<br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2>-<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>

<dd><font face="arial" size=2>----- Original Message ----- <br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2>From:</b> <a href="mailto:defilm@acm.org">Mark J. DeFilippis</a> <br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2>To:</b> <a href="mailto:cod@icculus.org">cod@icculus.org</a> <br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2>Sent:</b> Thursday, October 20, 2005 6:40 AM<br>
</font><font size=3><br>
</font>
<dd><font face="arial" size=2>Subject:</b> Re: [cod] monitoring script<br>
</font><font size=3><br>
</font>
<dd><font face="Times New Roman, Times" size=3>&nbsp;<br>
</font><br>
<font face="Courier New, Courier" size=2><br>
</font>
<dd><tt>I sent quite a few email's out.</tt><font face="Courier New, Courier" size=2><br>
</font>
<dd><tt>Everyone got it working? No one?&nbsp; Yea? Nah?</tt><font face="Courier New, Courier" size=2><br><br>
</font>
<dd><tt>Any help needed?&nbsp; Email me off line.</tt><font face="Courier New, Courier" size=2><br><br>
<br><br>

<dd>S1-------------------------------------------------------------------------------<br>

<dd>Mark J. DeFilippis&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:defilm@acm.org">defilm@acm.org</a><br>

<dd>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:defilm@ieee.org">defilm@ieee.org</a><br>
</font></blockquote>
<x-sigsep><p></x-sigsep>

</dl><tt>S2-------------------------------------------------------------------------------<br>
Mark J. DeFilippis, Ph. D EE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defilm@acm.org<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; defilm@ieee.org<br><br>
<br>
</body>
</html>