Re: apache logging problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Joshua Andrews <josh@xxxxxxxxxxxx>:

The httpd logrotate script was much as you wrote it out but there are
so many entries because of the virtualhost logging that I have
consolidated them all into one expression;

/var/log/httpd/access_log /var/log/httpd/any_log etc... {
missingok
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}

You left out the "sharedscripts" option.

I am thinking that restarting httpd so many times as I had logs may be
the problem.

Unless you use the "sharedscripts" option as I showed, it will still
restart it for each log file listed.  The "sharedscripts" option tells
it to only run the script once after rotating all the logs....

Thank you for the response, it helps getting another view.
-Joshua

No problem.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Go Longhorns!

--

fedora-legacy-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-legacy-list

[Index of Archives]     [Fedora Development]     [Fedora Announce]     [Fedora Legacy Announce]     [Fedora Config]     [PAM]     [Fedora General Discussion]     [Big List of Linux Books]     [Gimp]     [Yosemite Questions]

  Powered by Linux