In my /etc/logrotate.d/apache file, the following line accompanies the
entry for each of the virtual domains on my server:
    postrotate
        /usr/bin/killall -HUP httpd
    endscript

Is it necessary to kill/restart the apache daemon after *each* log file
is rotated.  My server not only has numerous domains hosted on it, but
also for each domain, there are multiple log files (errorlog, accesslog,
referrerlog, etc.).  So, whenever logrotate executes the
/etc/logrotate.d/apache file, the daemon is restarted over a 100 times! 
This seams silly/inefficient to me.

Can I simply run a single "killall -HUP httpd" command after I have
rotated *all* my files, as opposed to restarting the daemon after *each*
file?

thanks in advance for any feedback,

Stewart McCullough

PS Bonus question: how can I tell logrotate to mail me compressed
versions of my log files instead of the raw ones?  I know how to
compress the old files as they are stored, and I know how to mail the
uncompressed log files to me, but I do not know how to compress and then
mail.

-- 
Montana Banana, Inc.
web site design, hosting, and promotion
http://www.montanab.com/


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to