]> git.openstreetmap.org Git - chef.git/commitdiff
systemd: Add limit core dump support
authorGrant Slater <github@firefishy.com>
Wed, 12 Feb 2025 14:36:56 +0000 (14:36 +0000)
committerGrant Slater <github@firefishy.com>
Wed, 12 Feb 2025 14:36:56 +0000 (14:36 +0000)
cookbooks/systemd/resources/service.rb
cookbooks/systemd/templates/default/service.erb

index 11ca0e28c9246384a6e8d8b674fbc51a59e6ccb2..8b380c306699be039fd145fcb8b1577d88ad4c51 100644 (file)
@@ -36,6 +36,7 @@ property :notify_access, String, :is => %w[none main exec all]
 property :limit_nofile, Integer
 property :limit_as, [Integer, String]
 property :limit_cpu, [Integer, String]
 property :limit_nofile, Integer
 property :limit_as, [Integer, String]
 property :limit_cpu, [Integer, String]
+property :limit_core, [Integer, String]
 property :memory_low, [Integer, String]
 property :memory_high, [Integer, String]
 property :memory_max, [Integer, String]
 property :memory_low, [Integer, String]
 property :memory_high, [Integer, String]
 property :memory_max, [Integer, String]
index 92d70de85b3dabe7bf7de934dfcb48eb906884a1..eee220691166b2cfafa7ea43c822923bde5da76d 100644 (file)
@@ -45,6 +45,9 @@ LimitAS=<%= @limit_as %>
 <% if @limit_cpu -%>
 LimitCPU=<%= @limit_cpu %>
 <% end -%>
 <% if @limit_cpu -%>
 LimitCPU=<%= @limit_cpu %>
 <% end -%>
+<% if @limit_core -%>
+LimitCORE=<%= @limit_core %>
+<% end -%>
 <% if @memory_low -%>
 MemoryLow=<%= @memory_low %>
 <% end -%>
 <% if @memory_low -%>
 MemoryLow=<%= @memory_low %>
 <% end -%>