public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] logrotate desn't create new empty files
  @ 2007-08-04 10:09 99%     ` Mick
  0 siblings, 0 replies; 1+ results
From: Mick @ 2007-08-04 10:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]

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. --
> > gentoo-user@gentoo.org 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 #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-08-03 11:16     [gentoo-user] logrotate desn't create new empty files Jakob
2007-08-03 14:47     ` Matthias Guede
2007-08-04  8:29       ` Jakob
2007-08-04 10:09 99%     ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox