Results 1 to 4 of 4

Thread: zimbra.log 0 bytes - stopped after logrotate.

  1. #1
    acesuares is offline Active Member
    Join Date
    Apr 2009
    Location
    Willemstad, Curacao
    Posts
    39
    Rep Power
    6

    Default zimbra.log 0 bytes - stopped after logrotate.

    It seems that after logrotate, zimbra.log is not filled anymore (syslog stopped logging to zimbra.log).

    -rw-r--r-- 1 zimbra zimbra 0 2010-10-22 06:25 zimbra.log
    -rw-r--r-- 1 syslog adm 1017563 2010-10-22 06:24 zimbra.log.1.gz
    -rw-r--r-- 1 syslog adm 1049984 2010-10-21 06:25 zimbra.log.2.gz
    -rw-r--r-- 1 syslog adm 44032 2010-10-20 06:24 zimbra.log.3.gz
    -rw-r--r-- 1 zimbra zimbra 2641 2010-10-19 06:24 zimbra.log.4.gz


    After restarting syslog, it works again
    # /etc/init.d/rsyslog restart

    Is this a bug and should I report it?

  2. #2
    acesuares is offline Active Member
    Join Date
    Apr 2009
    Location
    Willemstad, Curacao
    Posts
    39
    Rep Power
    6

    Default Ubuntu 10.04 uses rsyslogd instead of syslogd

    In /opt/zimbra/conf/zmlogrotate, where zimbra.log and zimbra-stats.log are rotated, there is mention of syslogd but Ubuntu is using rsyslogd.

    /var/log/zimbra.log {
    daily
    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
    }
    /var/log/zimbra-stats.log {
    daily
    missingok
    notifempty
    create 0644 zimbra zimbra
    postrotate
    killall -HUP syslogd 2> /dev/null || true
    su - zimbra -c "/opt/zimbra/bin/zmlogswatchctl restart" > /dev/null 2>&1 || true
    endscript
    rotate 0
    }

  3. #3
    gevezex is offline Member
    Join Date
    Jul 2010
    Posts
    11
    Rep Power
    5

    Default

    Probably it is. Check also thread:

    zimbra.log empty after rotate

  4. #4
    imx
    imx is offline Special Member
    Join Date
    Jun 2009
    Posts
    131
    Rep Power
    6

    Default

    probably not the cleanest fix, but ive not had time to investigate further, but adding this to the following file sorted it for the meant time...

    /etc/cron.daily/logrotate

    /etc/init.d/rsyslog restart 2>&1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. zmmailboxdctl is stopped frequently..
    By tamilnandhu in forum Installation
    Replies: 13
    Last Post: 04-12-2008, 08:59 AM
  2. logger stopped by itself
    By zzzzsg in forum Administrators
    Replies: 23
    Last Post: 08-15-2007, 03:55 PM
  3. LDAP auth working only when firewall stopped
    By brousky in forum Installation
    Replies: 1
    Last Post: 09-19-2006, 06:32 AM
  4. Tomcat hanging
    By Morg0 in forum Administrators
    Replies: 42
    Last Post: 04-19-2006, 08:06 PM
  5. MTA Service Stopped
    By Ryan Frantz in forum Administrators
    Replies: 7
    Last Post: 11-23-2005, 02:03 PM

Posting Permissions

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