Results 1 to 3 of 3

Thread: Logrotate problem

  1. #1
    Join Date
    May 2011
    Posts
    24
    Rep Power
    4

    Default Logrotate problem

    Hi all,
    I'm trying to configure logrotate for mail.log in order to keep 2 years of data.
    I modified /etc/logrotate.d/zimbra in this manner:

    Code:
    /var/log/zimbra.log {
        weekly
        rotate 104
        missingok
        notifempty
        create 0644 zimbra zimbra
        postrotate
          killall -HUP syslogd 2> /dev/null || true
          su - zimbra -c "/opt/zimbra/bin/zmswatchctl restart" > /dev/null 2>&1 || true
        endscript
        compress
    }
    but /var/log/zimbra.log is still rotating daily and for 8 days.
    How can I solve?

    Thankyou very much.

  2. #2
    Join Date
    May 2011
    Posts
    24
    Rep Power
    4

    Default

    I'm using Zimbra 6.0.6 GA on Debian Etch

  3. #3
    Join Date
    May 2011
    Posts
    24
    Rep Power
    4

    Default

    Maybe the problem is that the real logrotate file is different?

    /opt/zimbra/conf/zmlogrotate

Similar Threads

  1. modify logrotate consequence ?
    By diablo62 in forum Administrators
    Replies: 0
    Last Post: 03-16-2012, 04:12 AM
  2. Logrotate, changing defaults!
    By mikeNAM in forum Administrators
    Replies: 6
    Last Post: 05-19-2011, 05:11 PM
  3. [SOLVED] logrotate issue
    By ewilen in forum Administrators
    Replies: 8
    Last Post: 01-13-2011, 08:39 AM
  4. [SOLVED] 5.0 GA - logrotate problem
    By boblin in forum Administrators
    Replies: 5
    Last Post: 01-07-2008, 02:20 PM
  5. logrotate freshclam.log
    By bowergo in forum Administrators
    Replies: 3
    Last Post: 01-05-2008, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •