Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed FC035.

  • Loading branch information...
commit 364b839e63a35b1d7aa5e537984ec2754dbdd698 1 parent 55a9dea
@hectcastro authored
Showing with 4 additions and 3 deletions.
  1. +2 −1  recipes/default.rb
  2. +2 −2 templates/default/statsd.conf.erb
View
3  recipes/default.rb
@@ -29,7 +29,8 @@
mode "0644"
source "statsd.conf.erb"
variables(
- :log_file => node["statsd"]["log_file"]
+ :log_file => node["statsd"]["log_file"],
+ :platform_version => node["platform_version"].to_f
)
end
View
4 templates/default/statsd.conf.erb
@@ -8,12 +8,12 @@ respawn
respawn limit 5 30
chdir /usr/share/statsd
-<% unless node['platform_version'].to_f < 11.10 -%>
+<% unless @platform_version < 11.10 -%>
setuid statsd
<% end %>
script
-<% if node['platform_version'].to_f < 11.10 -%>
+<% 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 %>
<% else -%>
exec /usr/local/bin/node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
Please sign in to comment.
Something went wrong with that request. Please try again.