X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/eb2f07271931a87b9ba1104b0eec6240e7bf300b..8273ef2eea66bd68ce328ebc78b1c5f49513e35c:/cookbooks/systemd/templates/default/service.erb?ds=inline diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 01e9e1d4f..92d70de85 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -25,6 +25,9 @@ Requires=<%= Array(@requires).join(" ") %> <% if @joins_namespace_of -%> JoinsNamespaceOf=<%= Array(@joins_namespace_of).join(" ") %> <% end -%> +<% if @stop_when_unneeded -%> +StopWhenUnneeded=<%= @stop_when_unneeded %> +<% end -%> [Service] <% if @type -%> @@ -69,6 +72,9 @@ DynamicUser=<%= @dynamic_user %> <% if @working_directory -%> WorkingDirectory=<%= @working_directory %> <% end -%> +<% if @umask -%> +UMask=<%= @umask %> +<% end -%> <% if @exec_start_pre -%> <% if @dropin -%> ExecStartPre= @@ -124,6 +130,9 @@ RuntimeDirectory=<%= @runtime_directory %> <% if @runtime_directory_mode -%> RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %> <% end -%> +<% if @runtime_directory_preserve -%> +RuntimeDirectoryPreserve=<%= @runtime_directory_preserve %> +<% end -%> <% if @state_directory -%> StateDirectory=<%= @state_directory %> <% end -%> @@ -262,6 +271,9 @@ SuccessExitStatus=<%= Array(@success_exit_status).join(" ") %> <% if @restart -%> Restart=<%= @restart %> <% end -%> +<% if @restart_sec -%> +RestartSec=<%= @restart_sec %> +<% end -%> <% if @timeout_start_sec -%> TimeoutStartSec=<%= @timeout_start_sec %> <% end -%>