X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e20fc2961c6d4dca7387cd0b5a6dc61a8fef4664..cac6ace6749429cdc77d0f1c0bac4890838d0861:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 188404508..4828c96af 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -49,18 +49,33 @@ Group=<%= @group %> WorkingDirectory=<%= @working_directory %> <% end -%> <% if @exec_start_pre -%> +<% if @dropin -%> +ExecStartPre= +<% end -%> ExecStartPre=<%= @exec_start_pre %> <% end -%> <% if @exec_start -%> +<% if @dropin -%> +ExecStart= +<% end -%> ExecStart=<%= @exec_start %> <% end -%> <% if @exec_start_post -%> +<% if @dropin -%> +ExecStartPost= +<% end -%> ExecStartPost=<%= @exec_start_post %> <% end -%> <% if @exec_stop -%> +<% if @dropin -%> +ExecStop= +<% end -%> ExecStop=<%= @exec_stop %> <% end -%> <% if @exec_reload -%> +<% if @dropin -%> +ExecReload= +<% end -%> ExecReload=<%= @exec_reload %> <% end -%> <% if @runtime_directory -%> @@ -123,6 +138,9 @@ IOSchedulingClass=<%= @io_scheduling_class %> <% if @io_scheduling_priority -%> IOSchedulingPriority=<%= @io_scheduling_priority %> <% end -%> +<% if @kill_mode -%> +KillMode=<%= @kill_mode %> +<% end -%> <% unless @dropin -%> [Install]