Permalink
Browse files

Don't use a full path to node binary in the init script.

  • Loading branch information...
1 parent 7428eaf commit f2ab6d56b0c0ee2dbaf1d778e5c0cfefdb83177d @Kami Kami committed Sep 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/default/statsd.conf.erb
@@ -14,9 +14,9 @@ setuid statsd
script
<% if @platform_version < 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 %>
+ exec start-stop-daemon --start --chuid statsd --exec 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 %>
+ exec node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
<% end -%>
end script

0 comments on commit f2ab6d5

Please sign in to comment.