Skip to content

Commit

Permalink
systemd improvements
Browse files Browse the repository at this point in the history
 * Allow to manually enable the systemd service to autostart at boot
 * Added a restart on failure with a delay to keep the service running
  • Loading branch information
volans- committed Jan 14, 2016
1 parent 243a1f2 commit 9d417b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debian/statsd-proxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ Wants=network.target
Type=simple
User=_statsd
ExecStart=/usr/bin/nodejs /usr/share/statsd/proxy.js /etc/statsd/proxyConfig.js
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
3 changes: 3 additions & 0 deletions debian/statsd.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ Wants=network.target
Type=simple
User=_statsd
ExecStart=/usr/bin/nodejs /usr/share/statsd/stats.js /etc/statsd/localConfig.js
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

0 comments on commit 9d417b0

Please sign in to comment.