View previous topic :: View next topic |
Author |
Message |
hanj Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/104414163441b8c6c1a6b4e.gif)
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Fri Jan 11, 2008 3:13 pm Post subject: daily logrorate of mail.log breaks mail.log |
|
|
Hello
I wanted to change my present logrotate configuration for mail to rotate on a daily basis, and store 8 logs compressed. I changed my mail.log script from:
Code: | /var/log/mail.log {
missingok
weekly
compress
} |
to
Code: | /var/log/mail.log {
missingok
daily
compress
rotate 8
} |
Now, every night I get a empty mail.log. Restarting syslog corrects the problem.. but not sure why the rotation is breaking the logging? Is there something obvious I'm doing wrong?
I'm using the following:
app-admin/syslog-ng-2.0.6
mail-mta/postfix-2.4.5
app-admin/logrotate-3.7.2
Thanks!
hanji _________________ Server Admin Blog - Uno-Code.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pteppic l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 28 Nov 2005 Posts: 781
|
Posted: Fri Jan 11, 2008 8:58 pm Post subject: Re: daily logrorate of mail.log breaks mail.log |
|
|
Try it as
Code: | /var/log/mail.log {
missingok
daily
compress
rotate 8
create
} |
or Code: | /var/log/mail.log {
missingok
daily
compress
rotate 8
copytruncate
} | maybe _________________ Current Project Thread (myth2avi) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|