Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for lucid's version of upstart

  • Loading branch information...
commit a3f8b800cd189d5dd807bbea865ffaba2482e190 1 parent 1471a0c
@rafaelmagu rafaelmagu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 templates/default/statsd.conf.erb
View
6 templates/default/statsd.conf.erb
@@ -8,10 +8,16 @@ respawn
respawn limit 5 30
chdir /usr/share/statsd
+<% unless node['platform_version'].to_f < 11.10 -%>
setuid statsd
+<% end %>
script
+<% if node['platform_version'].to_f < 11.10 -%>
+ exec start-stop-daemon --start --chuid statsd --exec /usr/local/bin/node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
+<% else -%>
exec /usr/local/bin/node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
+<% end -%>
end script
emits statsd-running
Please sign in to comment.
Something went wrong with that request. Please try again.