PDA

View Full Version : Another Question about AEStats


ThePlagueofDeath
11-05-2002, 03:09 PM
Well we finally got stats working for my server, but i now have another question. If the server has to get rebooted for some reason, the log gets erased and we have to start all over again. Does anyone know how to fix this problem? This is on a linux machine (dont know if that matters or not).

Thanks for all the help so far

M [84thUSMC] Plague of Death

Druid
11-05-2002, 04:47 PM
You should do a search on aa.com
I remember seeing a post about someone solving this problem

Peets
11-18-2002, 11:02 PM
We also use AE Stats on our server and encounter the same problem with our log getting erased when the server goes down. We try to set certain times to download the log so we know that we at least got some of the data. Especially after the busier server times. It is always horrible though when you realize that you lost a whole bunch of player data!

Shockwave
11-19-2002, 12:19 AM
It sounds to me like you need to archive a copy of your log file before you restart the server. With a few simple lines added to your restart script, you should be able to protect yourself. Here's a quick and dirty way you can archive your log files:

# change directory to where log is kept
cd ~/.mohaa/main

# save current log file with date/time stamp
echo
echo "Saving log file..."
STAMP="`date +%Y%m%d%H%M%S`"
SUFFIX=".log"
cp qconsole.log $STAMP$SUFFIX
echo "Log saved."
echo


This will create a copy of the existing log file in the following format:

CCYYMMDDHHMMSS.log

Just put something like this in your restart script before you issue the commands to restart the game server. Be sure to change the above commands to match your particular setup. You can get much more fancy but this will ensure your logs are archived.