summaryrefslogtreecommitdiff
path: root/sbin/rc
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/rc')
-rwxr-xr-xsbin/rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/rc b/sbin/rc
index 9ca43e7..af3a774 100755
--- a/sbin/rc
+++ b/sbin/rc
@@ -207,6 +207,9 @@ then
is_vserver_sys || try mount -n ${mntcmd:--t proc proc /proc -o noexec,nosuid,nodev}
eend $?
+ # Start profiling init now 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
@@ -375,6 +378,8 @@ then
# 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}"
retval=$?
if [[ ${retval} -ne 0 ]] ; then
@@ -497,6 +502,8 @@ then
# 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"