On Saturday 04 August 2007 09:29, Jakob wrote:
> > from LOGROTATE(8):
> >
> > Here  is  more information on the directives which may be included in a
> > logrotate configuration file:
> >
> > [...]
> >
> > copy   Make  a  copy  of the log file, but don't change the original at
> >               all.  This option can be used, for instance, to make a 
> > snapshot of  the  current  log  file, or when some other utility needs to
> > truncate or pare the file.  When this option is used, the create option 
> > will have no effect, as the old log file stays in place. --
> > [EMAIL PROTECTED] mailing list
>
> Thanks for that, I deleated copy, but it seams that the problem stays :-(

Look for a dead.letter file in /root which may contain any errors of the 
logrotate script.  In my system there is /etc/logrotate.d/syslog-ng which 
contains:
===================================
# 
$Header: 
/var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v 
1.2 2004/07/18 02:25:02 dragonheart Exp $
#
# Syslog-ng logrotate snippet for Gentoo Linux
# contributed by Michael Sterrett
#

/var/log/messages {
    sharedscripts
    postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
    endscript
}
===================================

It seems to rotate the messages log file fine and create compressed backups 
within /var/log.  If you have both scripts then there may be a conflict which 
would probably be captured in dead.letter.

HTH.
-- 
Regards,
Mick

Attachment: pgpDvdj3kSFaQ.pgp
Description: PGP signature

Reply via email to