data/export/systemd/process.service.erb in ypadlyak-foreman-0.81.0 vs data/export/systemd/process.service.erb in ypadlyak-foreman-0.85.0

- old
+ new

@@ -2,14 +2,17 @@ PartOf=<%= app %>-<%= name %>.target [Service] User=<%= user %> WorkingDirectory=<%= engine.root %> -Environment=PORT=<%= port %><% engine.env.each_pair do |var,env| %> -Environment=<%= var.upcase %>=<%= env %><% end %> -ExecStart=/bin/bash -lc '<%= process.command %>' +Environment=PORT=%i +<% engine.env.each_pair do |var,env| -%> +Environment="<%= var %>=<%= env %>" +<% end -%> +ExecStart=/bin/bash -lc 'exec <%= process.command %>' Restart=always StandardInput=null StandardOutput=syslog StandardError=syslog SyslogIdentifier=%n -KillMode=process +KillMode=mixed +TimeoutStopSec=<%= engine.options[:timeout] %>