data/export/systemd/process.service.erb in foreman-0.83.0 vs data/export/systemd/process.service.erb in foreman-0.84.0
- old
+ new
@@ -3,11 +3,13 @@
[Service]
User=<%= user %>
WorkingDirectory=<%= engine.root %>
Environment=PORT=%i
-<% if !engine.env.empty? -%>Environment=<% engine.env.each_pair do |var,env| %>"<%= var.upcase %>=<%= env %>" <% end %><% end -%>
-ExecStart=/bin/bash -lc '<%= process.command %>'
+<% engine.env.each_pair do |var,env| -%>
+Environment="<%= var.upcase %>=<%= env %>"
+<% end -%>
+ExecStart=/bin/bash -lc 'exec <%= process.command %>'
Restart=always
StandardInput=null
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=%n