From c7e3065e64b81e2ece9ff04e093cd7949ff2d870 Mon Sep 17 00:00:00 2001 From: igolman Date: Thu, 7 Nov 2024 11:43:17 +0100 Subject: [PATCH] chore: delay php-fpm service restart upon configuration update (#365) * chore: delay php-fpm service restart upon configuration update --------- Co-authored-by: Ivan Golman Co-authored-by: Dan Webb --- CHANGELOG.md | 4 ++++ resources/fpm_pool.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c313b9641..f489d7267 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This file is used to list changes made in each version of the PHP cookbook. ## Unreleased +## 10.1.2 - *2024-11-06* + +- delay `phpX.Y-fpm` service restart upon configuration update + ## 10.1.1 - *2024-08-01* - resolved cookstyle error: metadata.rb:14:20 refactor: `Chef/Correctness/SupportsMustBeFloat` diff --git a/resources/fpm_pool.rb b/resources/fpm_pool.rb index 80237287f..b1d4f81db 100644 --- a/resources/fpm_pool.rb +++ b/resources/fpm_pool.rb @@ -85,7 +85,7 @@ fpm_pool_chdir: new_resource.chdir, fpm_pool_additional_config: new_resource.additional_config ) - notifies :restart, "service[#{new_resource.service}]" + notifies :restart, "service[#{new_resource.service}]", :delayed end end