From aa021667850f91e844916ba59ed06602a2079fe8 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 5 Jan 2014 02:02:11 +0000 Subject: [PATCH] nginx: restart on site config change --- cookbooks/nginx/definitions/nginx_site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/nginx/definitions/nginx_site.rb b/cookbooks/nginx/definitions/nginx_site.rb index 64d33db3e..f6e1f3a4d 100644 --- a/cookbooks/nginx/definitions/nginx_site.rb +++ b/cookbooks/nginx/definitions/nginx_site.rb @@ -30,7 +30,7 @@ define :nginx_site, :action => [ :create ], :variables => {} do group "root" mode 0644 variables params[:variables].merge(:name => name, :directory => directory) - notifies :reload, "service[nginx]" + notifies :restart, "service[nginx]" end elsif site_action.include?(:delete) file "/etc/nginx/conf.d/#{name}.conf" do -- 2.39.5