X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a69e02a9b5f577945c26c29bf67568efe29fa210..5a1789389a423c29a13868410a841d35569b483d:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 0685a70ca..a4ff29fa9 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -30,6 +30,9 @@ JoinsNamespaceOf=<%= Array(@joins_namespace_of).join(" ") %> <% if @type -%> Type=<%= @type %> <% end -%> +<% if @notify_access -%> +NotifyAccess=<%= @notify_access %> +<% end -%> <% if @limit_nofile -%> LimitNOFILE=<%= @limit_nofile %> <% end -%> @@ -95,7 +98,15 @@ ExecStartPost=<%= exec_start_post %> ExecStop= <% end -%> <% Array(@exec_stop).each do |exec_stop| -%> -ExecStop=<%= @exec_stop %> +ExecStop=<%= exec_stop %> +<% end -%> +<% end -%> +<% if @exec_stop_post -%> +<% if @dropin -%> +ExecStopPost= +<% end -%> +<% Array(@exec_stop_post).each do |exec_stop_post| -%> +ExecStopPost=<%= exec_stop_post %> <% end -%> <% end -%> <% if @exec_reload -%>