Permalink
Browse files

Fixing order of shell redirection to ensure that stderr flows to log_…

…file
  • Loading branch information...
1 parent f2ab6d5 commit 3c5b4f9d9beb13485b732e7a62368f5f725f301b @viralshah viralshah committed Oct 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/default/statsd.conf.erb
@@ -14,9 +14,9 @@ setuid statsd
script
<% if @platform_version < 11.10 -%>
- exec start-stop-daemon --start --chuid statsd --exec node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
+ exec start-stop-daemon --start --chuid statsd --exec node /usr/share/statsd/stats.js /etc/statsd/config.js >> <%= @log_file %> 2>&1
<% else -%>
- exec node /usr/share/statsd/stats.js /etc/statsd/config.js 2>&1 >> <%= @log_file %>
+ exec node /usr/share/statsd/stats.js /etc/statsd/config.js >> <%= @log_file %> 2>&1
<% end -%>
end script

0 comments on commit 3c5b4f9

Please sign in to comment.