Re: [PATCH] newsyslog - don't compress first log file

[ Available lists | Index of freebsd-hackers | Month of Aug 2007 | Week of 10 Aug 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Trond Endrestøl <Trond.Endrestol@fagskolen.gjovik.no>
Date
10 Aug 2007 11:51:42
Subject
Re: [PATCH] newsyslog - don't compress first log file
Message-ID
20070810134612.G54795@ramstind.fig.ol.no

In reply to
References to
Referenced by

[ Hide this part ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 10 Aug 2007 14:19+0300, Artis Caune wrote:

> How about aditional flag ("X") to newsyslog, which don't compress first log
> file?

Why do you need to complicate matters? Just remove the Z flag from the
applicable lines in /etc/newsyslog.conf, and you'll accomplish not
compressing the log files entirely without patching newsyslog.

I may sound a bit harsh, but man newsyslog.conf clearly states the
purpose of each flag, and the use of any of the flags is not
mandatory. If you want no special treatment of a particular log file
then change the flags for that log file in to -.

> This is useful for apache.

Yes, I agree to a certaint point. Use the B flag for such log files,
and if you don't want the log file to be compressed, simply omit the Z
flag. How hard can it be?


Trond.

- --
- ----------------------------------------------------------------------
Trond Endrestl | trond@fagskolen.gjovik.no
Patron of The Art of Computer Programming| FreeBSD 6.2-S & Pine 4.64

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGvFFEbYWZalUoElsRApR+AJ422mWtAswBAmr+OE9+4a7ssg+mcACfSIL4
YhRR7OL3SlO1o594m+/vRJc=
=psKr
-----END PGP SIGNATURE-----


Elapsed time: 0.096 seconds