]> git.openstreetmap.org Git - chef.git/commitdiff
Don't complaing about trying to restart an app that isn't running
authorTom Hughes <tom@compton.nu>
Mon, 21 Dec 2015 17:14:12 +0000 (17:14 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 21 Dec 2015 17:14:12 +0000 (17:14 +0000)
cookbooks/web/definitions/rails_port.rb

index 1a57b792798e32512f7335b2cd8431e97f390085..83d0a1a3633d613f270219a362912d9bc3106a7f 100644 (file)
@@ -277,7 +277,7 @@ define :rails_port, :action => [:create, :enable] do
 
   execute rails_directory do
     action :nothing
-    command "passenger-config restart-app #{rails_directory}"
+    command "passenger-config restart-app --ignore-app-not-running #{rails_directory}"
     user "root"
     group "root"
     only_if { File.exist?("/usr/bin/passenger-config") }