From 246dbd618c071f1bbb33c506e7c4a797fb9d20a8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 20 Nov 2021 00:02:56 +0000 Subject: [PATCH] Restart rails by name during log rotation --- cookbooks/web/templates/default/logrotate.web.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/web/templates/default/logrotate.web.erb b/cookbooks/web/templates/default/logrotate.web.erb index 7f9e1de77..8502f770c 100644 --- a/cookbooks/web/templates/default/logrotate.web.erb +++ b/cookbooks/web/templates/default/logrotate.web.erb @@ -11,7 +11,7 @@ sharedscripts postrotate <% if File.directory?("#{node[:web][:base_directory]}/rails") -%> - PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running <%= node[:web][:base_directory] %>/rails > /dev/null + PASSENGER_INSTANCE_REGISTRY_DIR=<%= node[:passenger][:instance_registry_dir] %> /usr/bin/passenger-config restart-app --ignore-app-not-running --name rails > /dev/null <% end -%> <% if File.directory?("#{node[:web][:base_directory]}/gpx-import") -%> /bin/systemctl try-reload-or-restart gpx-import -- 2.39.5