[Unit]
Description=<%=@name%>
After=syslog.target network.target

[Service]
Type=simple
User=<%=@user%>

<% if @display %>
Environment=DISPLAY=<%=@display%>
<% end %>
ExecStart= "<%=@exec%>" <%=@args%>
KillMode=process
Restart=on-failure
RestartSec=45s

[Install]
WantedBy=multi-user.target

[Unit]
Description=<%=@name%>
After=syslog.target network.target

[Service]
Type=simple
User=<%=@user%>

<% if @display %>
Environment=DISPLAY=<%=@display%>
<% end %>
ExecStart=<%=@exec%> <%=@args%>
KillMode=process
Restart=on-failure
RestartSec=45s

[Install]
WantedBy=multi-user.target

Fix debian 8 Invalid argument exception
Fix debian 8 Invalid argument exception
