[6760] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Logrotate 2.0 comments & questions

daemon@ATHENA.MIT.EDU (Jos Vos)
Sat Nov 30 08:10:27 1996

To: redhat-list@redhat.com
Date: Sat, 30 Nov 1996 14:08:51 +0100
From: Jos Vos <jos@xos.nl>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Hi,

I had a quick look at logrotate 2.0 (didn't spell the code yet),
and a few questions remain (thanks for the man page!, although
it still doesn't answer _all_ questions).

First I want to say that I like some of the new features, especially
"include", making it easy for a package to have its own logrotate
config file.

My questions and comments:

-  Does logrotate now move a file, rather that copying it, so that
   some process may continue writing to it without any problem (e.g.,
   ftpd writing to xferlog)?  [I guess yes, but I'm not sure]

-  Related to this: some time ago I suggested an (IMHO) useful feature.
   When you don't compress the last rotated logfile immediately after
   moving it, but postponing this compress action to the next rotate
   cycle, you can still allow compression for this type of logfiles.

   [I think the xferlog example in the manpage refers to this situation,
   but it is suggested to use no compression, while my "trick" would
   solve the problem.  Could this become a new option "nocompresslast"
   or so, which can be used in combination with "compress"?]

-  The nocompress option is not described in the man page (I can guess
   what it does ;-)).

-  I vote for an option to create a new, empty logfile after moving it,
   with the same mode/owner/group (!) as the old logfile (option "create"
   or so).  This would be a nice feature, because there exist packages
   requiring a specific logfile to exist, with a specific mode or owner.
   Other packages do logging if and only if a (writeable) logfile exists.

Thanks for the improvements so far.

--
--    Jos Vos <jos@xos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post