[Pkg-sysvinit-commits] r1906 - in sysvinit/trunk/debian: . src/sysv-rc/etc/init.d

Petter Reinholdtsen pere at alioth.debian.org
Tue May 18 18:46:12 UTC 2010


Author: pere
Date: 2010-05-18 18:46:08 +0000 (Tue, 18 May 2010)
New Revision: 1906

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc
Log:
Print to the console how many seconds were spent running boot
scripts, to get more focus on boot speed while we prepare Squeeze.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2010-05-18 06:41:39 UTC (rev 1905)
+++ sysvinit/trunk/debian/changelog	2010-05-18 18:46:08 UTC (rev 1906)
@@ -11,6 +11,8 @@
     killall5 -CONT to properly exclude any new jobs upstart knows
     about so that we aren't waiting an extra 10 seconds for no reason.
     Patch from Steve Langasek and Ubuntu.
+  * Print to the console how many seconds were spent running boot
+    scripts, to get more focus on boot speed while we prepare Squeeze.
 
  -- Petter Reinholdtsen <pere at debian.org>  Sun, 16 May 2010 19:38:20 +0200
 

Modified: sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc
===================================================================
--- sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc	2010-05-18 06:41:39 UTC (rev 1905)
+++ sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc	2010-05-18 18:46:08 UTC (rev 1906)
@@ -16,6 +16,8 @@
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 export PATH
 
+starttime=$(date +%s)
+
 # Un-comment the following for interactive debugging. Do not un-comment
 # this for debugging a real boot process as no scripts will be executed.
 # debug=echo
@@ -331,5 +333,11 @@
 
 trap - EXIT # Disable emergency handler
 
+# This code should be removed when Squeeze freeze is getting closer
+# - Petter 2010-05-18
+endtime=$(date +%s)
+duration=$(($endtime - $starttime))
+log_action_msg "Running scripts in rc$runlevel.d/ took $duration seconds"
+
 exit 0
 




More information about the Pkg-sysvinit-commits mailing list