Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2007 13:51:28 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD-hackers@freebsd.org
Subject:   Re: [PATCH] newsyslog - don't compress first log file
Message-ID:  <20070810134612.G54795@ramstind.fig.ol.no>
In-Reply-To: <46BC49DB.8060509@latnet.lv>
References:  <46BC49DB.8060509@latnet.lv>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--------------030103040208010004050309
Content-Type: TEXT/PLAIN; CHARSET=UTF-8; FORMAT=flowed
Content-Transfer-Encoding: 8BIT
Content-ID: <20070810134612.U54795@ramstind.fig.ol.no>

-----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 Endrestøl                          |   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-----
--------------030103040208010004050309--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070810134612.G54795>