X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/03304582f8cbbb14d634498f9c31636452cdf532..cd339413a12e7f5795beb67ee780850b85748e4b:/cookbooks/systemd/templates/default/service.erb?ds=sidebyside diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 57f6a61e7..f7f851ae5 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -5,6 +5,9 @@ Description=<%= @description %> <% if @after -%> After=<%= Array(@after).join(" ") %> <% end -%> +<% if @wants -%> +Wants=<%= Array(@wants).join(" ") %> +<% end -%> [Service] Type=<%= @type %> @@ -23,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 -%> @@ -36,6 +42,42 @@ 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 -%> +<% if @standard_output -%> +StandardOutput=<%= @standard_output %> +<% end -%> +<% if @standard_error -%> +StandardError=<%= @standard_error %> +<% end -%> +<% if @private_tmp -%> +PrivateTmp=<%= @private_tmp %> +<% end -%> +<% if @private_devices -%> +PrivateDevices=<%= @private_devices %> +<% end -%> +<% if @private_network -%> +PrivateNetwork=<%= @private_network %> +<% end -%> +<% if @protect_system -%> +ProtectSystem=<%= @protect_system %> +<% end -%> +<% 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 -%>