From 3c5b4f9d9beb13485b732e7a62368f5f725f301b Mon Sep 17 00:00:00 2001 From: Viral Shah Date: Thu, 18 Oct 2012 15:45:38 -0700 Subject: [PATCH] Fixing order of shell redirection to ensure that stderr flows to log_file --- templates/default/statsd.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/default/statsd.conf.erb b/templates/default/statsd.conf.erb index 7b0eb83..f9b6977 100644 --- a/templates/default/statsd.conf.erb +++ b/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