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-05  7:36 99%       ` Jakob
  0 siblings, 0 replies; 1+ results
From: Jakob @ 2007-08-05  7:36 UTC (permalink / raw
  To: gentoo-user

> 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
>
Thanks for that hint, but there was nothing about logrotate in dead.letter.
logrotate itself works fine for me but I want the messages file erased
after rotating and start with a new file and that doesn't work.
any more ideas?

Regards

Jakob
-- 
gentoo-user@gentoo.org mailing list



^ 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         ` Mick
2007-08-05  7:36 99%       ` Jakob

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