]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/logrotate.nginx.erb
blogs: fix build in test
[chef.git] / cookbooks / nominatim / templates / default / logrotate.nginx.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/nginx/*.log {
4   daily
5   missingok
6   rotate 7
7   compress
8   delaycompress
9   notifempty
10   create 640 www-data adm
11   sharedscripts
12   postrotate
13     [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
14   endscript
15 }
16
17 <%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-*.log {
18   daily
19   missingok
20   rotate 28
21   compress
22   delaycompress
23   notifempty
24   create 640 www-data adm
25   sharedscripts
26   postrotate
27     [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
28   endscript
29 }