Skip to content

Commit

Permalink
[COOK-1437] Just restart immediately, since we want this behaviour fo…
Browse files Browse the repository at this point in the history
…r all runs, not only the first

I was too focused on the first run behaviour, and realized we want to force a restart immediately on all runs.
  • Loading branch information
Ian Delahorne committed Jul 11, 2012
1 parent b05420d commit 1a9f194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion recipes/server_debian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
owner "postgres"
group "postgres"
mode 0600
notifies :restart, resources(:service => "postgresql")
notifies :restart, resources(:service => "postgresql"), :immediately
end
8 changes: 2 additions & 6 deletions recipes/server_redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,14 @@

service "postgresql" do
supports :restart => true, :status => true, :reload => true
action :enable
action [:enable, :restart]
end

template "#{node[:postgresql][:dir]}/postgresql.conf" do
source "redhat.postgresql.conf.erb"
owner "postgres"
group "postgres"
mode 0600
notifies :restart, resources(:service => "postgresql")
notifies :restart, resources(:service => "postgresql"), :immediately
end

service "postgresql" do
supports :restart => true, :status => true, :reload => true
action :start
end

0 comments on commit 1a9f194

Please sign in to comment.