]> 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 b979703dd709da3a9a5690b2ed92fa2f2ba21e85..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 -%>
@@ -127,6 +130,9 @@ RuntimeDirectory=<%= @runtime_directory %>
 <% if @runtime_directory_mode -%>
 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
 <% end -%>
+<% if @runtime_directory_preserve -%>
+RuntimeDirectoryPreserve=<%= @runtime_directory_preserve %>
+<% end -%>
 <% if @state_directory -%>
 StateDirectory=<%= @state_directory %>
 <% end -%>