]> git.openstreetmap.org Git - chef.git/commitdiff
Don't complain if the Rails app isn't running
authorTom Hughes <tom@compton.nu>
Sun, 29 May 2016 07:51:16 +0000 (08:51 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 29 May 2016 07:51:16 +0000 (08:51 +0100)
cookbooks/web/templates/default/logrotate.web.erb

index ab906c68878e350be5c5622d5434007477e3a03d..b817621ab28632f1d8be985e26fb450049aee28f 100644 (file)
@@ -11,7 +11,7 @@
   sharedscripts
   postrotate
 <% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
   sharedscripts
   postrotate
 <% if File.directory?("#{node[:web][:base_directory]}/rails") -%>
-    /usr/bin/passenger-config restart-app <%= node[:web][:base_directory] %>/rails > /dev/null
+    /usr/bin/passenger-config restart-app --ignore-app-not-running <%= node[:web][:base_directory] %>/rails > /dev/null
 <% if node[:recipes].include?("logstash::forwarder") -%>
     /usr/bin/service logstash-forwarder restart > /dev/null
 <% end -%>
 <% if node[:recipes].include?("logstash::forwarder") -%>
     /usr/bin/service logstash-forwarder restart > /dev/null
 <% end -%>