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") -%>
15 PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running --name rails > /dev/null
17 <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%>
18 /bin/systemctl try-reload-or-restart gpx-import
20 <% if File.directory?("#{node[:web][:base_directory]}/cgimap") -%>
21 /bin/systemctl reload cgimap
22 /usr/bin/rsync --preallocate <%= node[:web][:log_directory] %>/cgimap.log.2.gz ironbelly::logs/www.openstreetmap.org/cgimap-<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz