Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2007 14:08:47 +0200
From:      Dirk GOUDERS <gouders@et.bocholt.fh-ge.de>
To:        Artis Caune <Artis.Caune@latnet.lv>
Cc:        FreeBSD-hackers@freebsd.org
Subject:   Re: [PATCH] newsyslog - don't compress first log file 
Message-ID:  <200708101208.l7AC8lxq069187@musashi.et.bocholt.fh-gelsenkirchen.de>
In-Reply-To: <46BC49DB.8060509@latnet.lv> 
References:  <46BC49DB.8060509@latnet.lv>

next in thread | previous in thread | raw e-mail | index | archive | help

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

How about using the flag "0" similar to that in newsyslog written by
Theodore Ts'o of MIT Project Athena:

         0       The 0 flag means that the most recent archive of the log
                 file (i.e. the one that ends in ``.0'') should not be
                 compressed even when the Z flag is given.  (This flag may
                 also be specified as P for compatability with NetBSD.)
                 This flag is necessary when managing log files written
                 directly to by long-running processes (eg.  smail, httpd,
                 etc.).  This flag also makes it more convenient to browse
                 through the most recently archived log file without hav-
                 ing to first uncompress it or use tools like zmore, or
                 zgrep, etc.

Best regards,

Dirk



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