Re: logrotate configuration

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Paul Dickson
Date:  
To: plug-discuss
Subject: Re: logrotate configuration
On Fri, 16 Jul 2004 15:53:07 -0700, wrote:

> I have added the below config to the bottom of logrotate.conf to
> rotate my postfix mail logs on my Debian system.. The problem is that
> these are still not being rotated daily, any suggestions?


>       "/var/log/mail.log" /var/log/mail.log {
>           daily
>           rotate 365
>           delaycompress
>           create
>           postrotate
>            /utilities/mail.stop && /utilities/mail.start
>        endscript
>     }


Shouldn't that first line be 
    /var/log/mail.log {


I'm not sure what happens if you specify the same file twice. Does it
rotate the logs if you run logrotate manually? If it does, check out the
cron job that runs logrotate.

    -Paul


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss