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 ab906c6..b817621 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 -%>