Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Commit

Permalink
Fixing order of shell redirection to ensure that stderr flows to log_…
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
Viral Shah committed Oct 18, 2012
1 parent f2ab6d5 commit 3c5b4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/default/statsd.conf.erb
Expand Up @@ -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

Expand Down

0 comments on commit 3c5b4f9

Please sign in to comment.