Red Hat Bugzilla – Bug 32705
Unnecessary re-execution of post-rotate scripts
Last modified: 2007-04-18 12:32:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-3 i686)
Looking at /etc/logrotate.d/apache, I see that a HUP is being sent to httpd
for every logfile. This seems like it is unnecessary. Why not have the
logrotate program keep track of what post-rotate script would be run for
all rotations, and if they are identical scripts, just run it once and not
every time. When many virtual hosts are used with many logfiles, the
sending of so many HUPs seems unnecessary.
Steps to Reproduce:
Not really a bug, but feature request, so there are no steps.
This is in the logrotate man page (which doesn't make it right, but it's not
going to be fixed soon).