X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f1dec95b684d66a563de20fae4bf4b6fce7e93d5..a4d04a4891133e5b8e623c316dc2147f1b333ae9:/cookbooks/web/templates/default/logrotate.web.erb diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index 9928841fe..6c8b79646 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -11,7 +11,7 @@ sharedscripts postrotate <% if File.directory?("#{node[:web][:base_directory]}/rails") -%> - /bin/touch <%= node[:web][:base_directory] %>/rails/tmp/restart.txt + /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> /usr/bin/service gpx-import rotated