chef/site-cookbooks/kredits-github/templates/default/nodejs.systemd.service.erb
Greg Karékinian f5051d6352 Revert "Move the environment variables to an EnvironmentFile"
This reverts commit 79023a65f24b86a3fd357a3db7d3cb60e34852a9.
2019-04-23 14:12:16 +02:00

16 lines
328 B
Plaintext

[Unit]
Description=Start nodejs app
[Service]
ExecStart=<%= @entry %>
WorkingDirectory=<%= @app_dir %>
User=<%= @user %>
Group=<%= @group %>
<% unless @environment.empty? -%>
Environment=<% @environment.each do |key, value| -%>'<%= key %>=<%= value %>' <% end %>
<% end -%>
Restart=always
[Install]
WantedBy=multi-user.target