Add a load more cookbooks to the public repository
[chef.git] / cookbooks / web / templates / default / logrotate.web.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <%= node[:web][:log_directory] %>/*.log {
4   daily
5   missingok
6   rotate 7 
7   compress
8   delaycompress
9   notifempty
10   create 0660 rails rails
11   sharedscripts
12   postrotate
13 <% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
14     /bin/touch <%= node[:web][:base_directory] %>/rails/tmp/restart.txt
15 <% end -%>
16 <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
17     /usr/bin/service gpx-import rotated
18 <% end -%>
19 <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%>
20     /usr/bin/service cgimap reload
21 <% end -%>
22   endscript
23 }