[Unit]
Description=Start nodejs app
Requires=redis-server.service
After=redis-server.service

[Service]
ExecStart=<%= @entry %>
User=<%= @user %>
Group=<%= @group %>
<% unless @environment.empty? -%>
Environment=<% @environment.each do |key, value| -%>'<%= key %>=<%= value %>' <% end %>
<% end -%>
Restart=always

[Install]
WantedBy=multi-user.target
