Skip to content

Commit

Permalink
Merge pull request #134 from engineyard/FB-1257-collectd-httpd-start
Browse files Browse the repository at this point in the history
[FB-1257] Start and enable collectd httpd
  • Loading branch information
Dimitris committed Jan 6, 2020
2 parents bdac146 + fa12e8e commit a678852
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions cookbooks/collectd/recipes/httpd.rb
Expand Up @@ -48,24 +48,23 @@
notifies :restart, "service[fcgiwrap]", :delayed
end

cookbook_file "/etc/systemd/system/collectd-httpd.service" do
source 'collectd-httpd.service'
owner 'root'
group 'root'
mode 0644
notifies :run, "execute[reload-systemd]", :immediately
notifies :restart, "service[collectd-httpd]", :immediately
end

service 'fcgiwrap.socket' do
provider Chef::Provider::Service::Systemd
action :enable
end

service "collectd-httpd" do
provider Chef::Provider::Service::Systemd
action :nothing
end

cookbook_file "/etc/systemd/system/collectd-httpd.service" do
source 'collectd-httpd.service'
owner 'root'
group 'root'
mode 0644
notifies :run, "execute[reload-systemd]", :immediately
notifies :enable, "service[collectd-httpd]", :immediately
notifies :start, "service[collectd-httpd]", :immediately
action [:start, :enable]
end

package "apache2-utils"
Expand Down

0 comments on commit a678852

Please sign in to comment.