You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Nathan Dorfman <na...@rtfm.net> on 2000/11/03 01:06:55 UTC

other/6791: [PATCH] add compression support to rotatelogs

>Number:         6791
>Category:       other
>Synopsis:       [PATCH] add compression support to rotatelogs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu Nov 02 16:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     nathan@rtfm.net
>Release:        1.3.12
>Organization:
apache
>Environment:
Solaris 7, gcc ... should work on any OS with the 'n'
version of string/stream functions.
>Description:
To make a long story short, we use getopt() to add support for two
options: -c, which turns compression on, and -C which sets the program
to use (/usr/local/bin/gzip by default). 

With this on, every time a file is closed because its time is expired,
it will be compressed.

Just hacked this on to my rotatelogs and thought someone else might find
it useful. Feel free to modify the patched code in any way you like or
provide it separately from the core release *shrug*
>How-To-Repeat:
Get a few pages about disk space approaching full at 2am. :-)
>Fix:
http://www.rtfm.net/rotatelogs.patch
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]