Permalink
Browse files

Allow nodejs_dir to be set by nodejs cookbook attribute

  • Loading branch information...
1 parent d77e04d commit 7a4b3baa26a43b6c1e4b6b2f074f5d1a856c91ad @jtescher jtescher committed Sep 10, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −1 recipes/default.rb
  2. +1 −1 templates/default/sv-statsd-run.erb
View
@@ -59,6 +59,7 @@
options ({
:user => node['statsd']['username'],
:statsd_dir => node['statsd']['dir'],
- :conf_dir => node['statsd']['conf_dir']
+ :conf_dir => node['statsd']['conf_dir'],
+ :nodejs_dir => node['nodejs']['dir']
})
end
@@ -1,4 +1,4 @@
#!/bin/sh
exec 2>&1
-exec chpst -u <%= @options[:user] %> /usr/local/bin/node <%= @options[:statsd_dir] %>/stats.js <%= @options[:conf_dir] %>/config.js
+exec chpst -u <%= @options[:user] %> <%= @options[:nodejs_dir] %>/bin/node <%= @options[:statsd_dir] %>/stats.js <%= @options[:conf_dir] %>/config.js

0 comments on commit 7a4b3ba

Please sign in to comment.