From: Grant Slater Date: Thu, 27 Feb 2014 16:06:28 +0000 (+0000) Subject: apache: buffer logs by default X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/3f2535167e3db969a0fee024dbfa43997fa6c9f8 apache: buffer logs by default --- diff --git a/cookbooks/apache/attributes/default.rb b/cookbooks/apache/attributes/default.rb index 41779d7d7..469a1a90d 100644 --- a/cookbooks/apache/attributes/default.rb +++ b/cookbooks/apache/attributes/default.rb @@ -29,3 +29,5 @@ default[:apache][:event][:max_requests_per_child] = 0 default[:apache][:listen_address] = "*" default[:apache][:ssl][:certificate] = "openstreetmap" + +default[:apache][:buffered_logs] = true diff --git a/cookbooks/apache/templates/default/httpd.conf.erb b/cookbooks/apache/templates/default/httpd.conf.erb index 0361ffd86..73e59c725 100644 --- a/cookbooks/apache/templates/default/httpd.conf.erb +++ b/cookbooks/apache/templates/default/httpd.conf.erb @@ -48,3 +48,5 @@ MaxRequestsPerChild <%= node[:apache][:event][:max_requests_per_child] %> # Default to UTF-8 AddDefaultCharset utf-8 + +BufferedLogs <%= node[:apache][:buffered_logs] ? "On" : "Off" %>