X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d6901fe86d88bb71438571945ca0886fae925e7e..cd339413a12e7f5795beb67ee780850b85748e4b:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 6d2b85e81..f7f851ae5 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -26,6 +26,9 @@ User=<%= @user %> <% if @group -%> Group=<%= @group %> <% end -%> +<% if @working_directory -%> +WorkingDirectory=<%= @working_directory %> +<% end -%> <% if @exec_start_pre -%> ExecStartPre=<%= @exec_start_pre %> <% end -%> @@ -39,6 +42,12 @@ ExecStop=<%= @exec_stop %> <% if @exec_reload -%> ExecReload=<%= @exec_reload %> <% end -%> +<% if @runtime_directory -%> +RuntimeDirectory=<%= @runtime_directory %> +<% end -%> +<% if @runtime_directory_mode -%> +RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %> +<% end -%> <% if @standard_input -%> StandardInput=<%= @standard_input %> <% end -%> @@ -63,6 +72,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 -%>