[Unit]
Description=Start nodejs app
After=ipfs.service

[Service]
ExecStartPre=/bin/sleep 5
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
