[cod] server up too long?

Geoff Goas gitman at gmail.com
Wed Jan 16 17:48:54 EST 2008


yay - i'm not alone

http://www.infinityward.com/community/forum/index.php?topic=10456.0

On Jan 14, 2008 2:25 PM, Geoff Goas <gitman at gmail.com> wrote:

> yeah i run it at 5am every morning. if there are players, then yes, it
> would yield partial data. but for my stats program, this is not a huge deal.
>
>
> On Jan 14, 2008 2:20 PM, Dax Douglass < dax.douglass at gmail.com> wrote:
>
> > Geoff,
> >
> > I assume you run this script in the early hours when the server is
> > empty.  You would get partial data from the current round if there were
> > players on the server?
> >
> >
> > On Jan 14, 2008 1:50 PM, Geoff Goas < gitman at gmail.com> wrote:
> >
> > > this is the script i use for running the stats and archiving the game
> > > logs for my cod2 ctf server. it doesn't clear out the console log, but i
> > > trust that the same method can be applied. just echo > logfile.
> > >
> > > #!/bin/sh
> > >
> > > SERVER=ctf
> > > BASEDIR=~/$SERVER
> > > MODNAME=ax                              # mod name or "main"
> > > LOGFILE=$BASEDIR/$MODNAME/game.log
> > > LOGDIR=$BASEDIR/logs
> > > DATE=`date +%Y_%m_%d-%H:%M`
> > > MOHSTATS=~/bin/mohstats
> > >
> > > # Copy the log file and erase the original
> > > if [ -e $LOGDIR/game_logs ]
> > >   then
> > >     echo "# log dir exists..."
> > >   else
> > >     echo "# creating log dir..."
> > >     mkdir -p $LOGDIR/game_logs
> > > fi
> > >
> > > grep say $LOGFILE > $LOGDIR/$DATE.chat
> > > cp $LOGFILE $LOGDIR/game_logs/$DATE.log
> > > echo > $LOGFILE
> > >
> > > # Run the stats
> > > cd $MOHSTATS
> > > nice -9 /usr/bin/php -q mohstats_$SERVER.php
> > > $LOGDIR/game_logs/$DATE.log
> > >
> > > if [ -e ~/public_html/stats/$SERVER ]
> > >   then
> > >     echo "# stats web dir exists..."
> > >   else
> > >     echo "# creating stats web dir..."
> > >     mkdir -p ~/public_html/stats/$SERVER
> > > fi
> > >
> > > # copy the cache file over
> > > cp $MOHSTATS/cache_$SERVER ~/public_html/stats/$SERVER/
> > >
> > > # archive the log file
> > > nice -9 gzip $LOGDIR/game_logs/$DATE.log
> > >
> > > echo "# done"
> > >
> > >
> > >
> > > On Jan 14, 2008 1:15 PM, RG GR <aquariusrick at hotmail.com> wrote:
> > >
> > > >
> > > > My 2 cents....
> > > >
> > > > That's the beauty of a Linux OS, so you shouldn't have to schedule
> > > > restarts (unless your running Microsoft......).
> > > >
> > > > It seems there should be a configuration setting for
> > > > MAXIMUM_LOGFILE_SIZE, which archives the logfile and creates a new one so
> > > > you don't HAVE to restart your server at 5am.
> > > >
> > > >  ------------------------------
> > > > Date: Mon, 14 Jan 2008 09:02:45 -0500
> > > > From: dax.douglass at gmail.com
> > > > To: cod at icculus.org
> > > > Subject: Re: [cod] server up too long?
> > > >
> > > > Geoff,
> > > >
> > > > How do you clear the game log with the server running?  I wanted to
> > > > do the same thing myself, but was afraid it may cause some issues.
> > > >
> > > > On Jan 14, 2008 8:44 AM, Geoff Goas < gitman at gmail.com> wrote:
> > > >
> > > > game logs can be cleared out without having to restart the server.
> > > > if i can maintain the same uptime on my cod2 server and not experience these
> > > > issues, then the same should go for cod4.
> > > >
> > > >
> > > > On Jan 14, 2008 6:40 AM, Jon Adams <dooku at ner-clan.net> wrote:
> > > >
> > > > Somethings aren't bugs, they are just "the way things are"
> > > > unfortunately not every cockroach can be snuffed out.
> > > > And if a clan is playing a match at 5am they need to discover the
> > > > outside!
> > > >
> > > >
> > > > On 14/01/2008, *Dubravszky József* <mail at joed.hu> wrote:
> > > >
> > > >  Well, we all know setting up a cron job is not a big deal for this
> > > > method. But restarting periodically is not a fair thing. What if a team is
> > > > actually playing matches @ 5 AM? Anyway I think the better way is to find
> > > > and fix the bug.
> > > >
> > > > ----- Original Message -----
> > > > *From:* Jon Adams <dooku at ner-clan.net>
> > > > *To:* cod at icculus.org
> > > >  *Sent:* Monday, January 14, 2008 9:52 AM
> > > > *Subject:* Re: [cod] server up too long?
> > > >
> > > > Good practice you should really restart you're server periodically,
> > > > reduce game log sizes & knocks out any errors. I'm sure there are more
> > > > experienced people here that can advise on a linux program that will
> > > > schedule this for you, but a 5am restart will alleviate these kinds of
> > > > troubles :)
> > > >
> > > >
> > > >
> > > > ------------------------------
> > > > Get the power of Windows + Web with the new Windows Live. Get it
> > > > now!<http://www.windowslive.com/?ocid=TXT_TAGHM_Wave2_powerofwindows_012008>
> > > >
> > >
> > >
> > >
> > >  --
> > > Geoff Goas
> > > IT Specialist, http://www.goastech.com
> > > Administrator, http://www.anarchic-x.com
> > >
> >
> >
> >
> > --
> > Dax Douglass
>
>
>
>
> --
> Geoff Goas
> IT Specialist, http://www.goastech.com
> Administrator, http://www.anarchic-x.com
>



-- 
Geoff Goas
IT Specialist, http://www.goastech.com
Administrator, http://www.anarchic-x.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20080116/bf4bbff0/attachment.htm>


More information about the Cod mailing list