Results 1 to 4 of 4

Thread: logrotate freshclam.log

  1. #1
    bowergo is offline Senior Member
    Join Date
    Jan 2007
    Location
    Baltimore, Maryland
    Posts
    51
    Rep Power
    8

    Default logrotate freshclam.log

    trying to rotate freshclam.log with no success.

    tried (among others)

    create 664 zimbra zimbra
    monthly
    missingok
    postrotate
    /bin/kill -HUP `cat /opt/zimbra/log/freshclam.pid 2> /dev/null` 2> /dev/null || true
    endscript
    }

    Also tried a copytruncate variant.

    Also would love to rotate zmmtaconfig.log and zmconvertd.log if anyone has figured these out

  2. #2
    Predatorz is offline Intermediate Member
    Join Date
    Jun 2007
    Posts
    19
    Rep Power
    7

    Default

    Bump. Anyone know about logrotate freshclam log file?

  3. #3
    brian is offline Project Contributor
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    9

    Default

    The following settings worked fine for me.
    Code:
    /opt/zimbra/log/freshclam.log {
            create 664 zimbra zimbra
            monthly
            missingok
            postrotate
                    /bin/kill -HUP `cat /opt/zimbra/log/freshclam.pid 2> /dev/null` 2> /dev/null || true
            endscript
    }
    Code:
    logrotate -f -v freshclam 
    reading config file freshclam
    reading config info for /opt/zimbra/log/freshclam.log 
    
    Handling 1 logs
    
    rotating pattern: /opt/zimbra/log/freshclam.log  forced from command line (no old logs will be kept)
    empty log files are rotated, old logs are removed
    considering log /opt/zimbra/log/freshclam.log
      log needs rotating
    rotating log /opt/zimbra/log/freshclam.log, log->rotateCount is 0
    renaming /opt/zimbra/log/freshclam.log.1 to /opt/zimbra/log/freshclam.log.2 (rotatecount 1, logstart 1, i 1), 
    old log /opt/zimbra/log/freshclam.log.1 does not exist
    renaming /opt/zimbra/log/freshclam.log.0 to /opt/zimbra/log/freshclam.log.1 (rotatecount 1, logstart 1, i 0), 
    old log /opt/zimbra/log/freshclam.log.0 does not exist
    log /opt/zimbra/log/freshclam.log.2 doesn't exist -- won't try to dispose of it
    renaming /opt/zimbra/log/freshclam.log to /opt/zimbra/log/freshclam.log.1
    disposeName will be /opt/zimbra/log/freshclam.log.1
    creating new log mode = 0664 uid = 500 gid = 501
    running postrotate script
    removing old log /opt/zimbra/log/freshclam.log.1
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Quote Originally Posted by bowergo View Post
    Also would love to rotate zmmtaconfig.log and zmconvertd.log if anyone has figured these out
    Also time to upgrade a bit (profile shows 4.5.7_GA_1319.RHEL4_64_20070914180929 NETWORK) this is in 5.0: Bug 10398 - clean up logging for swatch, zmmtaconfig

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] No logrotate for zmmtaconfig.log?
    By fisch09 in forum Administrators
    Replies: 7
    Last Post: 10-12-2007, 04:06 PM
  2. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  3. logrotate breaks logger functionality
    By grmbl in forum Administrators
    Replies: 3
    Last Post: 04-26-2006, 10:24 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
  •