--- /lib/rcscripts/sh/rc-services.sh.orig 2005-08-20 12:54:54.000000000 -0500 +++ /lib/rcscripts/sh/rc-services.sh 2005-09-06 19:17:52.000000000 -0500 @@ -377,7 +377,11 @@ || ${START_CRITICAL} == "yes" ]] ; then # if we can not start the services in parallel # then just start it and return the exit status - ( "/etc/init.d/${service}" start ) + ( + profiling name "/etc/init.d/${service} start" + + "/etc/init.d/${service}" start + ) retval="$?" splash "svc_started" "${service}" "${retval}" end_service "${service}" "${retval}" @@ -385,6 +389,8 @@ else # if parallel startup is allowed, start it in background ( + profiling name "/etc/init.d/${service} start" + "/etc/init.d/${service}" start retval="$?" splash "svc_started" "${service}" "${retval}" --- /sbin/rc.orig 2005-08-20 13:39:28.000000000 -0500 +++ /sbin/rc 2005-09-06 19:58:59.000000000 -0500 @@ -228,6 +228,9 @@ try mount -n ${mntcmd:--t proc proc /proc} eend $? + # start profilint init since we have /proc + profiling start + # Read off the kernel commandline to see if there's any special settings # especially check to see if we need to set the CDBOOT environment variable # Note: /proc MUST be mounted @@ -471,6 +474,8 @@ # Needed for some addons like dm-crypt that starts in critical services local myservice=$1 + profiling name "/etc/init.d/${service} start" + source "/etc/init.d/${service}" || eerror "Failed to source /etc/init.d/${service}" retval=$? [ "${retval}" -ne 0 ] && return "${retval}" @@ -587,6 +592,8 @@ # Now that the dependency cache are up to date, make sure these # are marked as started ... ( + profiling name "mark started" + # Needed for mark_service_started() source "${svclib}/sh/rc-services.sh"