]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/templates/default/service.erb
systemd: add pidfile support
[chef.git] / cookbooks / systemd / templates / default / service.erb
index ffac55396eee18f8d669a76a27756b706e30646c..57f6a61e7625f54c378065b26d40a76a09de027d 100644 (file)
@@ -42,6 +42,9 @@ Restart=<%= @restart %>
 <% if @timeout_sec -%>
 TimeoutSec=<%= @timeout_sec %>
 <% end -%>
+<% if @pid_file -%>
+PIDFile=<%= @pid_file %>
+<% end -%>
 
 [Install]
 WantedBy=multi-user.target