Bug 677288
Summary: | [RFE] httpd's rotatelogs needs a way to rotate files into a custom location | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | J.H.M. Dassen (Ray) <rdassen> | |
Component: | httpd | Assignee: | Joe Orton <jorton> | |
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | |
Severity: | low | Docs Contact: | ||
Priority: | low | |||
Version: | 5.6 | CC: | bgollahe, dapospis, jkaluza, jruemker, rbinkhor | |
Target Milestone: | rc | Keywords: | FutureFeature, Triaged | |
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Enhancement | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 757735 (view as bug list) | Environment: | ||
Last Closed: | 2012-02-21 06:33:50 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 554476, 726419, 757735, 769266 |
Description
J.H.M. Dassen (Ray)
2011-02-14 09:20:34 UTC
Comment on creeping featurism in rotatelogs as per bug 677279. Doing a rename() on the file after rotating might be feasible to add (a trivial feature, conditional on upstream acceptance), but note that this would restrict the destination location to the same partition as the source location. Would that be acceptable to the customer? Copying a log file across partitions would mean blocking logging (and hence request processing) for unknown length of time; not really a good idea. I've committed upstream a slightly more general way to achieve this; adding a -p argument: https://svn.apache.org/viewvc?view=revision&revision=1137590 from the docs: "" -p <program> Causes the specified program to be executed after each rotation. Two arguments are supplied upon execution: the newly opened file and the previous file, respectively. <code>rotatelogs</code> does not wait for the specified program to terminate before continuing to operate, and will not log any error code returned on termination. The spawned program uses the same stdin, stdout, and stderr as rotatelogs itself, and also inherits the environment. "" Hopefully this will be an acceptable way to provide this enhancement. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0261.html |