]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/logrotate.web.erb
Don't complain if the Rails app isn't running
[chef.git] / 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") -%>
-    /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 -%>