Skip to content
Browse files

Merge pull request #28 from jtescher/master

Allow nodejs_dir to be set by nodejs cookbook attribute.
  • Loading branch information...
2 parents d77e04d + 7a4b3ba commit 43dfb58e239b41011713b00ae28e457c61a264b2 @hectcastro 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
3 recipes/default.rb
@@ -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
View
2 templates/default/sv-statsd-run.erb
@@ -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 43dfb58

Please sign in to comment.
Something went wrong with that request. Please try again.