Permalink
Browse files

Merge branch 'heyinc-nodejs_binary' into develop

  • Loading branch information...
2 parents 191c733 + 0772ff5 commit bd02cd06cf75d8aa50f98f33faecd3b7bad1a025 @hectcastro committed Jun 4, 2014
Showing with 5 additions and 2 deletions.
  1. +3 −0 attributes/default.rb
  2. +1 −1 recipes/default.rb
  3. +1 −1 templates/default/sv-statsd-run.erb
View
3 attributes/default.rb
@@ -26,3 +26,6 @@
default["statsd"]["graphite"]["prefix_timer"] = "timers"
default["statsd"]["graphite"]["prefix_gauge"] = "gauges"
default["statsd"]["graphite"]["prefix_set"] = "sets"
+
+# nodejs
+default["statsd"]["nodejs_bin"] = "#{node["nodejs"]["dir"]}/bin/node"
View
2 recipes/default.rb
@@ -62,6 +62,6 @@
:user => node['statsd']['username'],
:statsd_dir => node['statsd']['dir'],
:conf_dir => node['statsd']['conf_dir'],
- :nodejs_dir => node['nodejs']['dir']
+ :nodejs_bin => node['statsd']['nodejs_bin']
})
end
View
2 templates/default/sv-statsd-run.erb
@@ -1,4 +1,4 @@
#!/bin/sh
exec 2>&1
-exec chpst -u <%= @options[:user] %> <%= @options[:nodejs_dir] %>/bin/node <%= @options[:statsd_dir] %>/stats.js <%= @options[:conf_dir] %>/config.js
+exec chpst -u <%= @options[:user] %> <%= @options[:nodejs_bin] %> <%= @options[:statsd_dir] %>/stats.js <%= @options[:conf_dir] %>/config.js

0 comments on commit bd02cd0

Please sign in to comment.