So, ever since I have started hosting I have been presented with a problem that I'm sure affects alot of hosters.
Lets say that you are running the logDetail plugin and have bzfs running like this
Code: Select all
bzfs -conf /home/USER/MAP/map.conf > /home/USER/MAP/log.txt
Now, lets say you have to restart your BZFS for a map update, or restart your entire server for a system update. Then you have a problem. Your problem is that when you start BZFS, it overwrites the old log. Now you could download all the logs, rename them, put them in folders, etc. But thats a pain.
So I was doing a little research and found something that made lots of sense once I thaught about it.
Now lets say you have a start script for every map that contains
Code: Select all
bzfs -conf /home/USER/MAP/map.conf > /home/USER/MAP/log.txt
Then you can add this in your start script to the name of the log file.
Code: Select all
$(date +%m-%d-%Y@%T)
Code: Select all
bzfs -conf /home/USER/MAP/map.conf > /home/USER/MAP/logs/log_$(date +%m-%d-%Y@%T).txt
Code: Select all
log_10-16-2009@16:21:56.txt
Hope this helps a few of you who are also having this dilemma!
-mrapplecomputer1