Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 345695 | Differences between
and this patch

Collapse All | Expand All

(-)a/bootchartd (-4 / +3 lines)
Lines 57-70 start() Link Here
57
	# If in init start ourselves in our familiar system
57
	# If in init start ourselves in our familiar system
58
	if [ -n "$INIT_PROCESS" ]; then
58
	if [ -n "$INIT_PROCESS" ]; then
59
#		echo "bootchartd started in init" >> kmsg
59
#		echo "bootchartd started in init" >> kmsg
60
		/lib/bootchart/bootchart-collector $SAMPLE_HZ
60
		$COLLECTOR_BIN $SAMPLE_HZ
61
61
62
	# Otherwise, manually launched to profile something
62
	# Otherwise, manually launched to profile something
63
	else
63
	else
64
		# bail out, if already running
64
		# bail out, if already running
65
		pidof bootchart-collector && exit 0
65
		pidof bootchart-collector && exit 0
66
#		echo "bootchartd started manually" >> kmsg
66
#		echo "bootchartd started manually" >> kmsg
67
		/lib/bootchart/bootchart-collector -r $SAMPLE_HZ &
67
		$COLLECTOR_BIN -r $SAMPLE_HZ &
68
68
69
		if [ "$#" -gt 0 ]; then
69
		if [ "$#" -gt 0 ]; then
70
			# If a command was passed, run it
70
			# If a command was passed, run it
Lines 110-116 stop() Link Here
110
		exit 1
110
		exit 1
111
	fi
111
	fi
112
112
113
	if ! /lib/bootchart/bootchart-collector --dump $tmpdir; then
113
	if ! $COLLECTOR_BIN --dump $tmpdir; then
114
		echo "Can't extract boot chart from collector"
114
		echo "Can't extract boot chart from collector"
115
		exit 1
115
		exit 1
116
	fi
116
	fi
117
- 

Return to bug 345695