]> git.openstreetmap.org Git - chef.git/commitdiff
Add systemd service RuntimeMaxSec
authorGrant Slater <git@firefishy.com>
Tue, 5 Oct 2021 23:47:53 +0000 (00:47 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 5 Oct 2021 23:47:53 +0000 (00:47 +0100)
cookbooks/systemd/resources/service.rb
cookbooks/systemd/templates/default/service.erb

index abfacb6502aed111dbfed4fcc005ac1bb370d934..4b53051d39c176364d13f3d2bf8794303f4aa25e 100644 (file)
@@ -48,6 +48,7 @@ property :exec_stop, String
 property :exec_reload, String
 property :runtime_directory, String
 property :runtime_directory_mode, Integer
+property :runtime_max_sec, Integer
 property :standard_input, String,
          :is => %w[null tty tty-force tty-fail socket]
 property :standard_output, String,
index eff7b83084cf19ce694b5a30903f45020b370666..7786ab6090e0a93102c4c1867e3a66a55df8e41b 100644 (file)
@@ -93,6 +93,9 @@ RuntimeDirectory=<%= @runtime_directory %>
 <% if @runtime_directory_mode -%>
 RuntimeDirectoryMode=<%= sprintf("0%o", @runtime_directory_mode) %>
 <% end -%>
+<% if @runtime_max_sec -%>
+RuntimeMaxSec=<%= @runtime_max_sec %>
+<% end -%>
 <% if @standard_input -%>
 StandardInput=<%= @standard_input %>
 <% end -%>