X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/15219fdfa4b2d38fd413e91e5aab3d409449f26a..5d9d6b0b933444f5da8b9820e82a8c364871ce73:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 0d4abbcef..6d8a603cc 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 -%> @@ -93,6 +108,15 @@ ProtectSystem=<%= @protect_system %> <% if @protect_home -%> ProtectHome=<%= @protect_home %> <% end -%> +<% if @read_write_paths -%> +ReadWritePaths=<%= Array(@read_write_paths).join(" ") %> +<% end -%> +<% if @read_only_paths -%> +ReadOnlyPaths=<%= Array(@read_only_paths).join(" ") %> +<% end -%> +<% if @inaccessible_paths -%> +InaccessiblePaths=<%= Array(@inaccessible_paths).join(" ") %> +<% end -%> <% if @restrict_address_families -%> RestrictAddressFamilies=<%= Array(@restrict_address_families).join(" ") %> <% end -%>