X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/40d704a6a1e8ef1ec71539bfa1f899fb57bc3cbb..c590ff1934c8f557a5f844c482daae5f672bddcf:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index 197d8bddf..92d70de85 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -25,6 +25,9 @@ Requires=<%= Array(@requires).join(" ") %> <% if @joins_namespace_of -%> JoinsNamespaceOf=<%= Array(@joins_namespace_of).join(" ") %> <% end -%> +<% if @stop_when_unneeded -%> +StopWhenUnneeded=<%= @stop_when_unneeded %> +<% end -%> [Service] <% if @type -%>