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

看板FB_hackers作者時間18年前 (2007/08/13 14:39), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/13 (看更多)
--DTbNwtYx2n+Gggn7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 10, 2007 at 02:19:55PM +0300, Artis Caune wrote: > How about aditional flag ("X") to newsyslog, which don't compress first= =20 > log file? >... Interesting idea, but it still falls short of something we recently needed to do at work: We have a requirement to retain some number of logfiles, but only compress those older than the Nth generation. Thus, we might retain 90 "rotated" generations of the log file, of which the oldest 50 are compressed, while the newest 40 are not. I didn't see a better way to do it, so I cobbled up a Perl script; I'd much rather be able to use newsyslog(8) for the job. Biggest problem I can see (with what I want to accomplish) is how to specify it in the config file. Peace, david --=20 David H. Wolfskill david@catwhisker.org Anything and everything is a (potential) cat toy. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --DTbNwtYx2n+Gggn7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAka8jpsACgkQmprOCmdXAD0uGQCffFfrCLRnnc6JjjQ6r3I+1lbj OeAAn0nwjeIRlq/mDbN8mBfsHlOhAd+Q =LcAD -----END PGP SIGNATURE----- --DTbNwtYx2n+Gggn7--
文章代碼(AID): #16l_o700 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16l_o700 (FB_hackers)