X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a625f50afa46bad7414bf197906208a5379edd3..95e1e4603eb8c32acf8ee58c845ec4ce5bfdd56c:/cookbooks/web/templates/default/logrotate.web.erb?ds=inline diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index 6c8b79646..ab906c688 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -12,6 +12,9 @@ postrotate <% if File.directory?("#{node[:web][:base_directory]}/rails") -%> /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null +<% if node[:recipes].include?("logstash::forwarder") -%> + /usr/bin/service logstash-forwarder restart > /dev/null +<% end -%> <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> /usr/bin/service gpx-import rotated