X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/a884ecbc667c29750d26ca2ad8f325f857ead5d3..03304582f8cbbb14d634498f9c31636452cdf532:/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