X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9f13c244211f5683f232f7cc32fac53be8d0b3ec..a0858dce1ce11c24de0103a341bc0ea8f75154ea:/cookbooks/systemd/templates/default/service.erb diff --git a/cookbooks/systemd/templates/default/service.erb b/cookbooks/systemd/templates/default/service.erb index ffac55396..57f6a61e7 100644 --- a/cookbooks/systemd/templates/default/service.erb +++ b/cookbooks/systemd/templates/default/service.erb @@ -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