Skip to content

Commit

Permalink
changed restart -> reload, for smoother config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hdanak committed Jun 22, 2013
1 parent a571b7a commit 40632a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions definitions/monitrc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
source params[:template_source]
cookbook params[:template_cookbook]
variables params[:variables]
notifies :restart, resources(:service => "monit"), params[:reload]
notifies :reload, resources(:service => "monit"), params[:reload]
action :create
end
else
template "/etc/monit/conf.d/#{params[:name]}.conf" do
action :delete
notifies :restart, resources(:service => "monit"), params[:reload]
notifies :reload, resources(:service => "monit"), params[:reload]
end
end
end
end
6 changes: 3 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
end

service "monit" do
action [:enable, :start]
action [:enable, :reload]
enabled true
supports [:start, :restart, :stop]
supports [:start, :reload, :restart, :stop]
end

directory "/etc/monit/conf.d/" do
Expand All @@ -28,5 +28,5 @@
group "root"
mode 0700
source 'monitrc.erb'
notifies :restart, resources(:service => "monit"), :delayed
notifies :reload, resources(:service => "monit"), :delayed
end

0 comments on commit 40632a3

Please sign in to comment.