X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/eff8701ee48d28f9afbf97b369d484f76e25db8a:/cookbooks/nominatim/templates/default/logrotate.apache.erb..611017bc534a5e2191dbf939b4be4899bbe9669c:/cookbooks/nominatim/templates/default/logrotate.nginx.erb diff --git a/cookbooks/nominatim/templates/default/logrotate.apache.erb b/cookbooks/nominatim/templates/default/logrotate.nginx.erb similarity index 63% rename from cookbooks/nominatim/templates/default/logrotate.apache.erb rename to cookbooks/nominatim/templates/default/logrotate.nginx.erb index 8835397f3..5bbd02eff 100644 --- a/cookbooks/nominatim/templates/default/logrotate.apache.erb +++ b/cookbooks/nominatim/templates/default/logrotate.nginx.erb @@ -1,30 +1,29 @@ # DO NOT EDIT - This file is being maintained by Chef -/var/log/apache2/*.log { +/var/log/nginx/*.log { daily missingok - rotate 42 + rotate 7 compress delaycompress notifempty - create 640 root adm + create 640 nginx adm sharedscripts postrotate - /bin/systemctl reload apache2 + [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` endscript } - <%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-access.log { daily missingok - rotate 42 + rotate 28 compress delaycompress notifempty create 640 root adm sharedscripts postrotate - /bin/systemctl reload apache2 + [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` endscript }