Bug 3916 - postrotate executes each time a wildcard is matched
postrotate executes each time a wildcard is matched
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: logrotate (Show other bugs)
6.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Erik Troan
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-07-06 11:03 EDT by astrope
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-11-23 11:18:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description astrope 1999-07-06 11:03:04 EDT
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.
Comment 1 Michael K. Johnson 1999-07-30 12:03:59 EDT
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.
Comment 2 Erik Troan 2000-07-13 12:33:39 EDT
logrotate-3.4 allows you to specify "sharedscripts", which will cause the
scripts to be
executed exactly once.

Note You need to log in before you can comment on or make changes to this bug.