From 2a9c5e5e87a56ac84bb695edf7ae222efb6569bc Mon Sep 17 00:00:00 2001 From: Peter Hjalmarsson Date: Sun, 6 Feb 2011 15:55:23 +0100 Subject: [PATCH 1/2] Always use COLLECTOR_BIN it is already defined, so we might as well always use it. Thanks Lucian Muresan for initial patch --- bootchartd | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bootchartd b/bootchartd index ee5ecc6..c6f4bff 100755 --- a/bootchartd +++ b/bootchartd @@ -57,14 +57,14 @@ start() # If in init start ourselves in our familiar system if [ -n "$INIT_PROCESS" ]; then # echo "bootchartd started in init" >> kmsg - /lib/bootchart/bootchart-collector $SAMPLE_HZ + $COLLECTOR_BIN $SAMPLE_HZ # Otherwise, manually launched to profile something else # bail out, if already running pidof bootchart-collector && exit 0 # echo "bootchartd started manually" >> kmsg - /lib/bootchart/bootchart-collector -r $SAMPLE_HZ & + $COLLECTOR_BIN -r $SAMPLE_HZ & if [ "$#" -gt 0 ]; then # If a command was passed, run it @@ -110,7 +110,7 @@ stop() exit 1 fi - if ! /lib/bootchart/bootchart-collector --dump $tmpdir; then + if ! $COLLECTOR_BIN --dump $tmpdir; then echo "Can't extract boot chart from collector" exit 1 fi -- 1.7.4