X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c85ecc8614c7bae496a30e8d4a45912b566fcfa7..5a1789389a423c29a13868410a841d35569b483d:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index a106b001b..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 -%> @@ -98,6 +101,14 @@ ExecStop= 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 -%> <% if @dropin -%> ExecReload=