Package: bootchart
Version: 0.10~svn407-1
Tags: patch

At the moment, the boot chart collector stop collecting when the last
init.d scripts are executed.  With concurrent booting and things
started in the background by the init.d scripts, this is a bit early
when one want to know when the system just booted settles down, and
especially when measuring how long it take before the desktop is ready
when using autologin with gdm/kdm.

To improve the situation, I propose to collect some seconds after the
last init.d script is done.  Here is a patch to delay it by 20
seconds, which might be enough.  Please consider this patch to
generate more useful bootcharts.

diff -ur ../bootchart-0.10~svn407/debian/bootchart.init 
../bootchart-0.10~svn407-pere/debian/bootchart.init
--- ../bootchart-0.10~svn407/debian/bootchart.init      2009-10-05 
22:00:33.000000000 +0200
+++ ../bootchart-0.10~svn407-pere/debian/bootchart.init 2009-10-05 
22:48:02.000000000 +0200
@@ -39,13 +39,11 @@
   start)
     if pgrep -x $NAME > /dev/null; then
         [ "$VERBOSE" != no ] && \
-          log_daemon_msg "Stopping boot process analyser" "$NAME"
-
-        if $DAEMON stop; then
-            [ "$VERBOSE" != no ] && log_end_msg 0
-        else
-               [ "$VERBOSE" != no ] && log_end_msg 1
-        fi
+          log_daemon_msg "scheduling stop of boot process analyser" "$NAME"
+       ( # Collect information a bit after the boot too
+           sleep 20; $DAEMON stop
+       ) &
+       [ "$VERBOSE" != no ] && log_end_msg 0
     fi
     ;;
   stop|restart|force-reload)

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to