[cod] Log file rotation

Josh Wright admin at jdwright.net
Tue Jan 27 15:29:10 EST 2004

You'll need logsync set to 1 for this to work.  Otherwise it only writes
the log at every map_rotate (and writes it slowly for the first few
minutes of the new map to avoid lag I guess).

It can be used in the cfg file or from the command line.
set g_logsync "1"


-----Original Message-----
From: VG Ops [mailto:info at valuegaming.com] 
Sent: Tuesday, January 27, 2004 9:56 AM
To: cod at icculus.org
Subject: [cod] Log file rotation

Has anyone had any problems with setting up log file rotation. If find 
that if I move the games_mp.log file (to say games_mp.1.gz) then CoD 
does not start a new games_mp.log and wont write to an empty 
games_mp.log put in its place (a touched file). In fact, the only way I 
seem able to get cod to start writing to the log is to restart the 
server. :-(

Ideally I'd like to rotate the logs every hour as part of a cron job 
which also updates the mohstats (I don't want mohstats to keep reading 
the same data in the file and create duplicate entries in the stats).

VG ops

More information about the Cod mailing list