X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b3a77d0d43c88fb8c8989319f7d436477aee07eb..71ccd17db8188fee4b2ebd8574e6e8b4b54adfb1:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index ffc0efb72..151b01790 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -14,6 +14,21 @@ Type=<%= @type %> <% if @limit_nofile -%> LimitNOFILE=<%= @limit_nofile %> <% end -%> +<% if @limit_as -%> +LimitAS=<%= @limit_as %> +<% end -%> +<% if @limit_cpu -%> +LimitCPU=<%= @limit_cpu %> +<% end -%> +<% if @memory_low -%> +MemoryLow=<%= @memory_low %> +<% end -%> +<% if @memory_high -%> +MemoryHigh=<%= @memory_high %> +<% end -%> +<% if @memory_max -%> +MemoryMax=<%= @memory_max %> +<% end -%> <% @environment.each do |name,value| -%> Environment="<%= name %>=<%= value %>" <% end -%> @@ -75,6 +90,9 @@ ProtectHome=<%= @protect_home %> <% if @no_new_privileges -%> NoNewPrivileges=<%= @no_new_privileges %> <% end -%> +<% if @success_exit_status -%> +SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %> +<% end -%> <% if @restart -%> Restart=<%= @restart %> <% end -%>