1 # DO NOT EDIT - This file is being maintained by Chef
3 <%= node[:web][:log_directory] %>/*.log {
10 create 0660 rails rails
13 <% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
14 /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null
15 <% if node[:recipes].include?("logstash::forwarder") -%>
16 /usr/bin/service logstash-forwarder restart > /dev/null
19 <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
20 /usr/bin/service gpx-import rotated
22 <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%>
23 /usr/bin/service cgimap reload
24 /usr/bin/rsync <%= node[:web][:log_directory] %>/cgimap.log.2.gz ironbelly::logs/www.openstreetmap.org/cgimap-<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz