]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/templates/default/service.erb
Use chef image clone to ghcr to workaround docker hub limits
[chef.git] / cookbooks / systemd / templates / default / service.erb
index 197d8bddf80dd6972be5d9eb550f69f6d6d8ff79..92d70de85b3dabe7bf7de934dfcb48eb906884a1 100644 (file)
@@ -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 -%>