<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Sweet dude! That's what I was gonna try and
figure out. How to search and see if the server is running! Thanx
man! You rock! Your start script has some similarity with
mine. I'll post mine like I said when I go to lunch. That's
what happens with stuff like this. Theres always tons of different ways of
getting to the same objective. Mine actually looks very similar to a
regular init script. Has start, stop, and restart all in the same
file. It looks very similar to another init script that someone posted
using the screen command but like I said my host doesn't have that
working. Again, thanks Starkness!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Nathan - A.K.A. [BASHYOU] SNiPeS</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=starkness@wwwclan.com href="mailto:starkness@wwwclan.com">www clan -
Starkness</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 15, 2003 12:21
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [cod] Linux Startup
scripts?</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff size=2>Here
is a cronjob I use for sof2. I was working on making it work
for cod, but got too busy and can't get the time to work on it. I
hope this can help. If it works for you, please post back here if you
makde any changes.</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>Thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>//Starkness</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>//Cronjob</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff size=2>*/5
* * * * /home/games/sof2/check_sof2_server.sh</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>//End cronjob</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff size=2>This
runs a check script which will run a start script if it doesn't find the
server running.</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</FONT></SPAN></SPAN></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>///Begin Check script///</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>#!/bin/sh</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>SERVER=`ps -ef | grep -v grep | grep -c sof2ded`</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff size=2>if [
"$SERVER" != "0" ] ; then<BR> echo "Already
Running, exiting"<BR>
exit<BR>else<BR> echo "Starting up the
server..."<BR> cd
/home/getawebhost/sof2<BR>
/home/getawebhost/sof2/start.sh > /dev/null
2>&1<BR>fi</FONT></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><FONT
face=Arial color=#0000ff size=2>///End Check
script///</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><FONT
face=Arial color=#0000ff size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</FONT></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><SPAN class=031531318-15122003><FONT face=Arial
color=#0000ff
size=2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</FONT></SPAN></SPAN></SPAN></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>///Begin Start script///</FONT></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff size=2>#!/bin/sh<BR>cd
/home/games/sof2<BR>./sof2ded +set dedicated 2 +set sv_pure 1 +set
sv_punkbuster 1 +set fs_homepath /home/games/sof2 +set net_ip xx.xx.xx.xx
+set net_port 20100 +exec sof2.cfg +exec +set fs_game osp > /dev/null
&</FONT></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><SPAN class=031531318-15122003><FONT face=Arial
color=#0000ff size=2>///End
Start script///</FONT></SPAN></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff size=2><SPAN
class=031531318-15122003><SPAN class=031531318-15122003><SPAN
class=031531318-15122003><FONT face=Arial color=#0000ff
size=2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</FONT></SPAN></SPAN></SPAN></FONT></SPAN></SPAN></SPAN></DIV>
<DIV><SPAN class=031531318-15122003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=031531318-15122003></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Nathan Peters
[mailto:natedog550@hotmail.com]<BR><B>Sent:</B> Monday, December 15, 2003
1:07 PM<BR><B>To:</B> cod@icculus.org<BR><B>Subject:</B> Re: [cod] Linux
Startup scripts?<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Cool. Yeah what I'm planning to do as far
as the server not responding is probably a cron job that runs every 5
minutes or so. If it finds that the server process is not running it
will run my start script. If it finds it is running it will not do
anything. Something to that nature. Man the possiblities of a
perfect set of scripts we could all create if we all put our ideas
together!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Nathan - A.K.A. [BASHYOU] SNiPeS</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mikeydee@usd.wli.net
href="mailto:mikeydee@usd.wli.net">MikeyDee</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 15, 2003 11:46
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cod] Linux Startup
scripts?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>here is my startup config that works
just fine. If i find the server not responding I just login and kill
-9 the pid</FONT></DIV>
<DIV><FONT face=Arial size=2>#!/bin/bash</FONT></DIV>
<DIV><FONT face=Arial size=2>while
true<BR>do<BR>/home/user/callofduty/cod_lnxded +exec ded.cfg +sets
gamestartup \"`date +"%m-%d-%Y %T"`\"<BR>echo "server crashed on `date`"
> last_crash.txt<BR>done</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=natedog550@hotmail.com
href="mailto:natedog550@hotmail.com">Nathan Peters</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 15, 2003
9:11 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cod] Linux Startup
scripts?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Not sure if I can help you there man.
I don't know a ton about linux. Yet there is a bunch of peeps here
that do. I will tell you in advance what they will need. Do
a top command or something that shows all the processes running.
Too many variables can contribute to stuff like that - hanging,
crashing, etc. More details you can give them the better.
What my script does is run the program in the background and gives it
the nohup command and also writes to a logfile. This keeps the
process from quittin'. It works very well. I'm very proud of
myself haha. Many hours of research and search engines finding the
pieces I needed to make it work. As far as the screen command goes
I don't know enough about that to help you. But from what I have
learned it keeps it running when you close the shell or logoff the
system. Anyone can correct me if I'm wrong. Anyways, that's
my input.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Nathan - A.K.A - [BASHYOU]
SNiPeS</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mikeydee@usd.wli.net
href="mailto:mikeydee@usd.wli.net">MikeyDee</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 15, 2003
10:57 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cod] Linux Startup
scripts?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>That sounds wonderful. I have been
running the server and never had crash yet it just hangs with either
100% cpu and none can connect. That is what I am trying to
sort out getting restarted?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Red Hat 8.0 install on the OS. I
have not tried the latest screen commands does that change the way the
dedicated server runs?</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=natedog550@hotmail.com
href="mailto:natedog550@hotmail.com">Nathan Peters</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 15, 2003
6:58 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cod] Linux
Startup scripts?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hey everyone. It took me 5 hours
this weekend to write custom startup, restart, and shutdown scripts
for the medal of honor linux server - because the server I'm hosted
on doesn't have the screen command and I didn't want to have to
install a ton of stuff to make it work. I'm also in the
process of writing scripts to turn mods on and off very easily and
also a script that emails me when the server goes down or a script
that restarts the server, not sure yet. But, I'm pretty sure
these scripts will work for CoD also. I copywrited or
licensed them whatever you want to call it with the GNU license so
they're free but I still get credit for writing them, so if you want
to take a look at them let me know and I'll put them somewhere where
you can download them, that way you get a copy of the license.
Reason: It took me a long time to do this and I doubt anyone has
scripts like these. They can be run from a cron
also.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Peace out,</FONT></DIV>
<DIV><FONT face=Arial size=2> Nathan - A.K.A. [BASHYOU]
SNiPeS</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=david@fuess.net href="mailto:david@fuess.net">David A.
Fuess</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=cod@icculus.org
href="mailto:cod@icculus.org">cod@icculus.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 15,
2003 7:32 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [cod] Linux
Startup scripts?</DIV>
<DIV><BR></DIV>I have mine in a forever loop with a 5 second
delay. If it crashes, which is rare, it the quit command is issued
then it pauses for 5 seconds and restarts the server. The script
also manages the log files and other cleanup tasks.<BR><BR>At
10:13 AM 12/13/2003 -0800, you wrote:<BR><BR>
<BLOCKQUOTE class=cite cite="" type="cite"><FONT face=arial
color=#000080 size=2>Okay thanks for all the
feedback.<BR></FONT><BR><FONT face=arial color=#000080
size=2> <BR></FONT><BR><FONT face=arial color=#000080
size=2>Next question is I used to have to set a cron job or
something to restart the server when it hangs or
crashes.<BR></FONT><BR><FONT face=arial color=#000080
size=2> <BR></FONT><BR><FONT face=arial color=#000080
size=2>Anyone using any daemon tools or supervisor tools on CoD
that work.
<BR></FONT><BR><FONT face=arial color=#000080 size=2> <BR>
<HR>
<DIV align=center></FONT></DIV><FONT face=tahoma
size=2><B>From:</B> Rene de Vries [<A
href="mailto:rene.devries@home.nl"
eudora="autourl">mailto:rene.devries@home.nl</A>]
<BR><B>Sent:</B> Thursday, December 11, 2003 11:21
PM<BR><B>To:</B> cod@icculus.org<BR><B>Subject:</B> RE: [cod]
Linux Startup scripts?<BR></FONT><BR><FONT
face="Times New Roman, Times"> <BR></FONT><BR><FONT
face=arial color=#0000ff size=2>Hi,<BR></FONT><BR><FONT
face="Times New Roman, Times"> <BR></FONT><BR><FONT
face=arial color=#0000ff size=2>create a
file<BR></FONT><BR><FONT face=arial color=#0000ff size=2>ex: vi
start<BR></FONT><BR><FONT face=arial color=#0000ff size=2>paste
this "screen -A -m -d -S cod /cod_lnxded
+map_rotate"<BR></FONT><BR><FONT face=arial color=#0000ff
size=2>write and quit vi<BR></FONT><BR><FONT face=arial
color=#0000ff size=2>chmod +777 start<BR></FONT><BR><FONT
face=arial color=#0000ff size=2>execute:
/start<BR></FONT><BR><FONT face=arial color=#0000ff size=2>ctrl
a+d to leave the screen<BR></FONT><BR><FONT
face="Times New Roman, Times"> <BR></FONT>
<DL><BR>
<DD><FONT face=tahoma size=2>-----Oorspronkelijk
bericht-----<BR>
<DD>Van:</B> MikeyDee [<A href="mailto:mikeydee@usd.wli.net"
eudora="autourl">mailto:mikeydee@usd.wli.net</A>]<BR>
<DD>Verzonden:</B> vrijdag 12 december 2003 0:43<BR>
<DD>Aan:</B> cod@icculus.org<BR>
<DD>Onderwerp:</B> [cod] Linux Startup scripts?<BR></FONT><BR>
<DD><FONT face=arial size=2>anyone have linux startup script
?<BR></FONT><BR>
<DD><FONT face="Times New Roman, Times"><BR></FONT><BR>
<DD><FONT face=arial size=2>beside doing
/cod_lnxded<BR></FONT><BR>
<DD><FONT face="Times New Roman, Times"><BR></FONT><BR>
<DD><FONT face=arial size=2>I was trying to add +set commands
to get it automated but seem to fail on me?<BR></FONT><BR>
<DD><FONT
face="Times New Roman, Times"><BR></FONT> </DD></DL></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>