public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jakob <jak.gentoo@googlemail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] logrotate desn't create new empty files
Date: Sun, 5 Aug 2007 09:36:02 +0200	[thread overview]
Message-ID: <a23345650708050036h26f9ed6h970052b85ec2058a@mail.gmail.com> (raw)
In-Reply-To: <200708041110.05431.michaelkintzios@gmail.com>

> 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



  reply	other threads:[~2007-08-05  7:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 11:16 [gentoo-user] logrotate desn't create new empty files Jakob
2007-08-03 14:41 ` Dale
2007-08-03 14:47 ` Matthias Guede
2007-08-04  8:29   ` Jakob
2007-08-04 10:09     ` Mick
2007-08-05  7:36       ` Jakob [this message]
2007-08-05  9:04         ` Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a23345650708050036h26f9ed6h970052b85ec2058a@mail.gmail.com \
    --to=jak.gentoo@googlemail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox