Skip to content

Commit

Permalink
systemd: Add limit core dump support
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Feb 12, 2025
1 parent 898b244 commit d9c688a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/systemd/resources/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
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]
Expand Down
3 changes: 3 additions & 0 deletions cookbooks/systemd/templates/default/service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ LimitAS=<%= @limit_as %>
<% if @limit_cpu -%>
LimitCPU=<%= @limit_cpu %>
<% end -%>
<% if @limit_core -%>
LimitCORE=<%= @limit_core %>
<% end -%>
<% if @memory_low -%>
MemoryLow=<%= @memory_low %>
<% end -%>
Expand Down

0 comments on commit d9c688a

Please sign in to comment.