9
# Short-Description: Start bootchart
10
# Description: Bootchart is normally started from the initramfs
11
# however this starts it if not
14
[ -x /lib/bootchart/collector ] || exit 0
16
# Jail we run from in initramfs
19
# Where we put the output
20
LOGS=/var/run/bootchart
22
test -d $JAIL && exit 0
24
grep -q "profile" /proc/cmdline && exit 0
25
grep -q "bootchart=disable" /proc/cmdline && exit 0
27
if grep -q "bootchart=[0-9]*hz" /proc/cmdline; then
28
HZ=$(sed -e 's/.*bootchart=//;s/hz.*//' /proc/cmdline)
34
. /lib/lsb/init-functions
40
/lib/bootchart/collector $HZ $LOGS 2>/dev/null &
42
stop|restart|reload|force-reload)
45
log_success_msg "Usage: /etc/init.d/bootchart {start|stop|restart|reload|force-reload}"