]> git.openstreetmap.org Git - chef.git/commitdiff
nginx: restart on site config change
authorGrant Slater <git@firefishy.com>
Sun, 5 Jan 2014 02:02:11 +0000 (02:02 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 5 Jan 2014 02:02:11 +0000 (02:02 +0000)
cookbooks/nginx/definitions/nginx_site.rb

index 64d33db3eaf8766ceb50bf5077133277cf6a2cc9..f6e1f3a4d820e4f647d740c7977771a64b5ed19c 100644 (file)
@@ -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