Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5eb9a29695
Fetching contributors…

Cannot retrieve contributors at this time

executable file 33 lines (28 sloc) 0.549 kB
package "monit"
if platform?("ubuntu")
cookbook_file "/etc/default/monit" do
source "monit.default"
owner "root"
group "root"
mode 0644
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'
mode 0755
action :create
recursive true
end
template "/etc/monit/monitrc" do
owner "root"
group "root"
mode 0700
source 'monitrc.erb'
notifies :restart, resources(:service => "monit"), :delayed
end
Jump to Line
Something went wrong with that request. Please try again.