From b341e72281cabfbc7167c06f3883573691bc7ad7 Mon Sep 17 00:00:00 2001 From: Dan Carley Date: Thu, 2 Jan 2014 15:32:05 +0000 Subject: [PATCH] Force carbon-aggregator to run in foreground This is the same dirty hack applied to carbon-cache in #13. Otherwise the following happens, and variations of `expect` cause it to hang :( ``` root@graphite-1:~# start carbon-aggregator carbon-aggregator start/running, process 23813 root@graphite-1:~# status carbon-aggregator carbon-aggregator stop/waiting root@graphite-1:~# cat /var/log/upstart/carbon-aggregator.log Starting carbon-aggregator (instance a) carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 carbon-aggregator (instance a) is already running with pid 23491 ``` --- templates/upstart/carbon-aggregator.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/upstart/carbon-aggregator.conf b/templates/upstart/carbon-aggregator.conf index 09cc8f8..65ee06c 100755 --- a/templates/upstart/carbon-aggregator.conf +++ b/templates/upstart/carbon-aggregator.conf @@ -14,4 +14,4 @@ exec python '<%= @root_dir %>/bin/carbon-aggregator.py' \ <% if @aggregation_rules_ensure == 'present' -%> --rules='<%= @root_dir %>/conf/aggregation-rules.conf' \ <% end -%> - start + --debug start