Bug 3916
Summary: | postrotate executes each time a wildcard is matched | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | astrope |
Component: | logrotate | Assignee: | Erik Troan <ewt> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | astrope |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 1999-11-23 16:18:04 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: |
Description
astrope
1999-07-06 15:03:04 UTC
Reformatted to have line breaks to be easier to read: When using wildcards in logrotate scripts such as /home/*/logs/access_log, the postrotate commands get executed each time the wildcard is matched, rather than executing once after the loop is finished. This has adverse effects on apache, especially when used with mod_ssl with virtual domains and certificates need to be reread and random bits regenerated. The killall -HUP httpd postrotate sometimes causes apache to die when many are sent in a short time. logrotate-3.4 allows you to specify "sharedscripts", which will cause the scripts to be executed exactly once. |