Permalink
Browse files

Merge pull request #32 from newsdev/start-restart

An invalid monitrc breaks all future chef-client runs...
  • Loading branch information...
2 parents 05abace + b9d5708 commit 11f49ab848bb19bbba151afbacc3ce25e405cc16 @jwmarshall jwmarshall committed Dec 5, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 recipes/default.rb
View
@@ -9,12 +9,6 @@
end
end
-service "monit" do
- action [:enable, :start]
- enabled true
- supports [:start, :restart, :stop]
-end
-
directory "/etc/monit/conf.d/" do
owner 'root'
group 'root'
@@ -28,5 +22,11 @@
group "root"
mode 0700
source 'monitrc.erb'
- notifies :restart, resources(:service => "monit"), :delayed
+ notifies :restart, "service[monit]", :delayed
+end
+
+service "monit" do
+ action [:enable, :start]
+ enabled true
+ supports [:start, :restart, :stop]
end

0 comments on commit 11f49ab

Please sign in to comment.