From: Grant Slater Date: Sun, 5 Jan 2014 02:02:11 +0000 (+0000) Subject: nginx: restart on site config change X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/aa021667850f91e844916ba59ed06602a2079fe8 nginx: restart on site config change --- 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