X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ac70ce25a040b80b712d556692b99f16408c71f3..bac2546111fc4271f2cca1ea64706f4725edca89:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 703d64281..4cac416f7 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -14,6 +14,18 @@ Type=<%= @type %> <% if @limit_nofile -%> LimitNOFILE=<%= @limit_nofile %> <% end -%> +<% if @limit_as -%> +LimitAS=<%= @limit_as %> +<% 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 -%> @@ -26,6 +38,9 @@ User=<%= @user %> <% if @group -%> Group=<%= @group %> <% end -%> +<% if @working_directory -%> +WorkingDirectory=<%= @working_directory %> +<% end -%> <% if @exec_start_pre -%> ExecStartPre=<%= @exec_start_pre %> <% end -%> @@ -69,6 +84,12 @@ ProtectSystem=<%= @protect_system %> <% if @protect_home -%> ProtectHome=<%= @protect_home %> <% end -%> +<% 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 -%>