From 3f0ba848d29f5ef34badab8a835cf938ab338f21 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 1 Jul 2018 18:48:50 +0100 Subject: [PATCH] Don't error if passenger isn't running when we restart the web site --- cookbooks/web/resources/rails_port.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 70c334e1e..8da12cc53 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -336,7 +336,7 @@ action :create do execute rails_directory do action :nothing - command "passenger-config restart-app --ignore-app-not-running #{rails_directory}" + command "passenger-config restart-app --ignore-app-not-running --ignore-passenger-not-running #{rails_directory}" user "root" group "root" only_if { ::File.exist?("/usr/bin/passenger-config") } @@ -355,7 +355,7 @@ end action :restart do execute rails_directory do action :run - command "passenger-config restart-app --ignore-app-not-running #{rails_directory}" + command "passenger-config restart-app --ignore-app-not-running --ignore-passenger-not-running #{rails_directory}" user "root" group "root" end -- 2.39.5