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: [gentoo-user] logrotate desn't create new empty files
Date: Fri, 3 Aug 2007 13:16:50 +0200	[thread overview]
Message-ID: <a23345650708030416v46902602u301d7503f43de05c@mail.gmail.com> (raw)

Hi all,

I'm running logrotate on my homeserver and the logs are rotated
correctly but after rotating it should create new empty log files and
that doesnt work.

here are my confs:
/etc/logrotate.conf:
# $Header: /var/cvsroot/gentoo-x86/app-admin/logrotate/files/logrotate.conf,v
1.2 2004/07/18 01:58:24 dragonheart Exp $
#
# Logrotate default configuration file for Gentoo Linux
#
# See "man logrotate" for details

# rotate log files weekly
weekly
#daily

# keep 4 weeks worth of backlogs
rotate 10

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
compress

# packages can drop log rotation information into this directory
include /etc/logrotate.d

notifempty
nomail
noolddir

# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.

 and /etc/logrotate.d/syslog-ng:
# $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 {
  dateext
  olddir /var/log/
  copy
  create 0600 root root
  size 5000k
  sharedscripts
  postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
  endscript
}

I thought create will do this but it doesn't work and my logs getting
bigger and bigger.
What did I do wron?

Regards

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



             reply	other threads:[~2007-08-03 11:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 11:16 Jakob [this message]
2007-08-03 14:41 ` [gentoo-user] logrotate desn't create new empty files 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
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=a23345650708030416v46902602u301d7503f43de05c@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