Permalink
Browse files

introduce nodejs_bin to replace inheritance of nodejs_dir, backwards …

…compatible
  • Loading branch information...
1 parent 191c733 commit 0772ff51c3b57cba56b17f1330fb45fdb89eed04 @jamesonjlee jamesonjlee committed Jun 2, 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
@@ -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
@@ -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
@@ -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 0772ff5

Please sign in to comment.