Permalink
Browse files

Added support for lucid's version of upstart

  • Loading branch information...
1 parent 1471a0c commit a3f8b800cd189d5dd807bbea865ffaba2482e190 @rafaelmagu rafaelmagu committed Aug 24, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 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

0 comments on commit a3f8b80

Please sign in to comment.