public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] logrotate desn't create new empty files
@ 2007-08-03 11:16 Jakob
  2007-08-03 14:41 ` Dale
  2007-08-03 14:47 ` Matthias Guede
  0 siblings, 2 replies; 7+ messages in thread
From: Jakob @ 2007-08-03 11:16 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-05  9:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-08-05  9:04         ` Mick

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