Hello,

I recently looked into a solution for rotating my TMDA logs. Here's a
solution that seems to be working well on FreeBSD 4.5. It appears that
on Linux you could do something similiar with the "logrotate" program.

1. Create your own "newsyslog.conf" configuration file. In my case, I
made it:
/home/mark/etc/newsyslog.conf

The contents look like this:
# logfilename              mode count size when [ZB]
/home/mark/.tmda/log-in    600  3     100  *     Z
/home/mark/.tmda/log-out   600  3     100  *     Z

2. Then I created a cron entry to run every hour, using "crontab -e"
to edit my personal crontab file:

# Rotate TMDA logs
13 * * * * newsyslog -r -f /home/mark/etc/newsyslog.conf

#########
If I have other personal log files I want to rotate, I can
simply add entries to my personal "newsyslog.conf" file for them.

        Mark

 --
 . . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg            Principal Developer
   [EMAIL PROTECTED]     Summersault, LLC
   765-939-9301 ext 202     database driven websites
 . . . . . http://www.summersault.com/ . . . . . . . .
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to