<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Verdana;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US style="COLOR: #000000; FONT-FAMILY: Tahoma" vLink=purple
link=blue bgColor=#ffffff>
<BLOCKQUOTE id=8d357cd>
<DIV><FONT color=#800080>Here I s what <FONT face=Verdana
size=2><STRONG>"ArdChoille" </STRONG>wrote: But my question is where do these
files go? In what directories? Thanks for the help.</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT><BR> </DIV><FONT face=Arial size=2>
<DIV>
<P><FONT face="verdana, arial, helvetica" size=2><B>Start
server</B><BR><BR>Call this start and make it executable<BR></FONT>
<BLOCKQUOTE><PRE><FONT face=verdana,arial,helvetica size=1>code:</FONT><HR>#!/bin/sh
start=`date '+%H:%M on %d/%m/%y'`
echo "CoD server started @ $start" >>/usr/local/games/CoD.log
screen -A -m -d -S CoD ./cod_lnxded +set sv_cheats 0 +map_rotate +set fs_homepath /usr/local/games/callofduty +set fs_basepath /usr/local/games/callofduty +exec codserver.cfg >/dev/null 2>&1 &
echo $! >CoD.pid<HR></PRE></BLOCKQUOTE><FONT face="verdana, arial, helvetica"
size=2><BR><BR><B>Cron script</B><BR>This checks to see if the server is
running and restart it if its not<BR></FONT>
<BLOCKQUOTE><PRE><FONT face=verdana,arial,helvetica size=1>code:</FONT><HR>#!/bin/sh
gamedir=/usr/local/games/callofduty
pidfile=CoD.pid
cd $gamedir
if [ -f $pidfile ]; then
        kill -0 `cat $pidfile` >/dev/null 2>&1
        if [ $? -ne 0 ]; then
                ./start >/dev/null 2>&1
        fi
else
        ./start >/dev/null 2>&1
fi<HR></PRE></BLOCKQUOTE><FONT face="verdana, arial, helvetica"
size=2><BR><BR><B>Cron job</B><BR></FONT>
<BLOCKQUOTE><PRE><FONT face=verdana,arial,helvetica size=1>code:</FONT><HR>*/5 * * * * /usr/local/games/callofduty/cron<HR></PRE></BLOCKQUOTE><FONT face="verdana, arial, helvetica" size=2><BR>This will
make the script above run every 5 minutes <IMG alt=""
src="http://www.fpscentral.com/forums/images/smilies/smile.gif"
border=0><BR><BR>screen -A -m -d -S CoD will open a screen and run the server
in it, this screen will be detached and called CoD<BR>You can bring up the
server console by using screen -r CoD - to detach again ctrl +a
d.<BR><BR></FONT>
<BLOCKQUOTE><PRE><FONT face=verdana,arial,helvetica size=1>code:</FONT><HR>start=`date '+%H:%M on %d/%m/%y'`
echo "CoD server started @ $start" >>/usr/local/games/CoD.log<HR></PRE></BLOCKQUOTE><FONT face="verdana, arial, helvetica" size=2><BR>This
makes a file called CoD.log and inputs the time the server was started <IMG
alt="" src="http://www.fpscentral.com/forums/images/smilies/smile.gif"
border=0></FONT><BR>[KaoS] Stryker CL</DIV>
<DIV> </DIV>
<DIV>'Strike First Strike Hard"</DIV>
<DIV><FONT face=Tahoma size=3></FONT> </DIV>
<DIV><BR></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=plebas@clan-mutiny.co.uk
href="mailto:plebas@clan-mutiny.co.uk">plebs</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> Wednesday, February 11, 2004 9:23
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [cod] Cron.jobs/Auto
Restart</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><SPAN class=375172117-11022004><FONT size=2>A good thread for this is
<A
href="http://www.fpscentral.com/forums/showthread.php?s=&threadid=8907">http://www.fpscentral.com/forums/showthread.php?s=&threadid=8907</A> .
It worked for me.</FONT></SPAN></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
size=2>-----Original Message-----<BR><B>From:</B> [KaoS] Stryker
[mailto:ohnueaglehawk@comcast.net]<BR><B>Sent:</B> 11 February 2004
15:58<BR><B>To:</B> <A
href="mailto:cod@icculus.org">cod@icculus.org</A><BR><B>Subject:</B> [cod]
Cron.jobs/Auto Restart<BR><BR></FONT></DIV>
<BLOCKQUOTE id=0><LABEL id=HbSession SessionId="432709629"></LABEL>
<DIV>I am not the computer savvy one but I am helping an associate out
getting the info. We want to set up a server auto restart. This is new
to me so forgive me if I sound confusing. But I believe we want to set
up cron.job to check server approx every few minutes to see if it
is running or timed out and then execute the startup process if its
down. I understand we need several elements to make this work. Cron.job,
cron.script and crontab or something like that. Could someone help us
out on getting this setup. We need to know what <FONT
color=#ff0000>folders</FONT> these files/scripts are suppose to <FONT
color=#ff0000>reside</FONT> in and how to get it to
run..........Cron.jobs for idiots.</DIV>
<DIV>Ha-ha, I would appreciate the help Guys, Gals.</DIV>
<DIV> </DIV>
<DIV><BR>Stryker </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR> </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"><FONT face="Times New Roman"
size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<P></P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE>
<P></P></BODY></HTML>