Bug 3916

Summary: postrotate executes each time a wildcard is matched
Product: [Retired] Red Hat Linux Reporter: astrope
Component: logrotateAssignee: Erik Troan <ewt>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: 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
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 16:03:59 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.

Comment 2 Erik Troan 2000-07-13 16:33:39 UTC
logrotate-3.4 allows you to specify "sharedscripts", which will cause the
scripts to be
executed exactly once.