X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/661d82c16c645e6bd22fadcaeaadffe92fafaf29..3a33d35c42600aa215df8467702c98bee73415f8:/cookbooks/apache/recipes/default.rb diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index b1e808929..8f217d364 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