Re: logrotate configuration

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Brown
Date:  
To: plug-discuss
Subject: Re: logrotate configuration
> 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
>    }


This looks fine... Did you verify that the syslog rotate script isn't also
trying to rotate the mail log files? Is mail using the syslog daemon to log
events... If so, you might need to HUP the syslog daemon after moving the logs...

My /etc/logrotate.d/syslog:
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler 
/var/log/boot.log /var/log/cron {
     sharedscripts
     postrotate
         /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
     endscript
}


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