]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/templates/default/service.erb
enable imagery::za_ngi_topo role
[chef.git] / cookbooks / systemd / templates / default / service.erb
index 13983b02b69c9dc35b660ce853b8a8e974f68bf0..57f6a61e7625f54c378065b26d40a76a09de027d 100644 (file)
@@ -1,3 +1,5 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
 [Unit]
 Description=<%= @description %>
 <% if @after -%>
@@ -15,6 +17,12 @@ Environment="<%= name %>=<%= value %>"
 <% if @environment_file -%>
 EnvironmentFile=<%= @environment_file %>
 <% end -%>
+<% if @user -%>
+User=<%= @user %>
+<% end -%>
+<% if @group -%>
+Group=<%= @group %>
+<% end -%>
 <% if @exec_start_pre -%>
 ExecStartPre=<%= @exec_start_pre %>
 <% end -%>
@@ -34,6 +42,9 @@ Restart=<%= @restart %>
 <% if @timeout_sec -%>
 TimeoutSec=<%= @timeout_sec %>
 <% end -%>
+<% if @pid_file -%>
+PIDFile=<%= @pid_file %>
+<% end -%>
 
 [Install]
 WantedBy=multi-user.target