I am considering Tux as the web server for a new CPAN mirror I'm building. I've got it running and it's very fast but there is one big catch: how am I supposed to rotate the log file?
The log file is configurable, and I am using the default value of /var/log/tux.
One option would be copy-and-truncate; e.g.:
cp /var/log/tux /var/log/tux.1
cat /dev/null > /var/log/tux
The logrotate application can do that for me but since the log file is binary I am concerned that this might lead to corruption at some point.
If it only corrupts one entry I can live with it - my fear is that the whole log file could be lost.
Anyone with experience care to make a suggestion?
Thanks