X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/95c5b6eab1ab292c95ad3c1eb7ac729dee6757a5..672db0ffdbfdec5510c282e7eeb2adc30d535111:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index ed117c24e..188404508 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -99,6 +99,9 @@ RestrictAddressFamilies=<%= Array(@restrict_address_families).join(" ") %> <% if @no_new_privileges -%> NoNewPrivileges=<%= @no_new_privileges %> <% end -%> +<% if @tasks_max -%> +TasksMax=<%= @tasks_max %> +<% end -%> <% if @success_exit_status -%> SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %> <% end -%> @@ -111,6 +114,15 @@ TimeoutSec=<%= @timeout_sec %> <% if @pid_file -%> PIDFile=<%= @pid_file %> <% end -%> +<% if @nice -%> +Nice=<%= @nice %> +<% end -%> +<% if @io_scheduling_class -%> +IOSchedulingClass=<%= @io_scheduling_class %> +<% end -%> +<% if @io_scheduling_priority -%> +IOSchedulingPriority=<%= @io_scheduling_priority %> +<% end -%> <% unless @dropin -%> [Install]