X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/68e068818d559ef35bdf2a138a93596337828ef9..5a207c66f87d1d119e0b3824345e1371e686eb7c:/cookbooks/apache/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index b1e808929..f47d500b5 100644 --- a/cookbooks/apache/recipes/default.rb +++ b/cookbooks/apache/recipes/default.rb @@ -54,6 +54,13 @@ template "/etc/apache2/ports.conf" do mode "644" end +systemd_service "apache2" do + dropin "chef" + memory_high "50%" + memory_max "75%" + notifies :restart, "service[apache2]" +end + service "apache2" do action [:enable, :start] retries 2 @@ -92,6 +99,5 @@ munin_plugin "apache_volume" prometheus_exporter "apache" do port 9117 - listen_switch "telemetry.address" options "--scrape_uri=http://localhost/server-status?auto" end