Skip to content

Commit

Permalink
Fix issue #30 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelebistoletti authored and johnhamelink committed Jan 23, 2017
1 parent 4a22848 commit a872c69
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions templates/init_scripts/systemd.service.eex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Description=<%= description %>
After=network.target

[Service]
Type=forking
TimeoutSec=120
Type=simple

User=<%= uid %>
Group=<%= gid %>

Expand All @@ -14,8 +14,16 @@ Environment=HOME=/root
Environment=HOME=/home/<%= uid %>
<% end %>

WorkingDirectory=/opt/<%= name %>

ExecStart= /opt/<%= name %>/bin/<%= name %> start
ExecStop= /opt/<%= name %>/bin/<%= name %> stop

Restart=on-failure
RemainAfterExit=yes
RestartSec=5

SyslogIdentifier=<%= name %>

[Install]
WantedBy=multi-user.target

0 comments on commit a872c69

Please sign in to comment.