Skip to content

Commit d9c688a

Browse files
committed
systemd: Add limit core dump support
1 parent 898b244 commit d9c688a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cookbooks/systemd/resources/service.rb

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
property :limit_nofile, Integer
3737
property :limit_as, [Integer, String]
3838
property :limit_cpu, [Integer, String]
39+
property :limit_core, [Integer, String]
3940
property :memory_low, [Integer, String]
4041
property :memory_high, [Integer, String]
4142
property :memory_max, [Integer, String]

cookbooks/systemd/templates/default/service.erb

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ LimitAS=<%= @limit_as %>
4545
<% if @limit_cpu -%>
4646
LimitCPU=<%= @limit_cpu %>
4747
<% end -%>
48+
<% if @limit_core -%>
49+
LimitCORE=<%= @limit_core %>
50+
<% end -%>
4851
<% if @memory_low -%>
4952
MemoryLow=<%= @memory_low %>
5053
<% end -%>

0 commit comments

Comments
 (0)