|
|
|| ${START_CRITICAL} == "yes" ]] ; then | || ${START_CRITICAL} == "yes" ]] ; then |
# if we can not start the services in parallel | # if we can not start the services in parallel |
# then just start it and return the exit status | # 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="$?" | retval="$?" |
splash "svc_started" "${service}" "${retval}" | splash "svc_started" "${service}" "${retval}" |
end_service "${service}" "${retval}" | end_service "${service}" "${retval}" |
|
|
else | else |
# if parallel startup is allowed, start it in background | # if parallel startup is allowed, start it in background |
( | ( |
|
profiling name "/etc/init.d/${service} start" |
|
|
"/etc/init.d/${service}" start | "/etc/init.d/${service}" start |
retval="$?" | retval="$?" |
splash "svc_started" "${service}" "${retval}" | splash "svc_started" "${service}" "${retval}" |
|
|
try mount -n ${mntcmd:--t proc proc /proc} | try mount -n ${mntcmd:--t proc proc /proc} |
eend $? | eend $? |
| |
|
# start profilint init since we have /proc |
|
profiling start |
|
|
# Read off the kernel commandline to see if there's any special settings | # 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 | # especially check to see if we need to set the CDBOOT environment variable |
# Note: /proc MUST be mounted | # Note: /proc MUST be mounted |
|
|
# Needed for some addons like dm-crypt that starts in critical services | # Needed for some addons like dm-crypt that starts in critical services |
local myservice=$1 | local myservice=$1 |
| |
|
profiling name "/etc/init.d/${service} start" |
|
|
source "/etc/init.d/${service}" || eerror "Failed to source /etc/init.d/${service}" | source "/etc/init.d/${service}" || eerror "Failed to source /etc/init.d/${service}" |
retval=$? | retval=$? |
[ "${retval}" -ne 0 ] && return "${retval}" | [ "${retval}" -ne 0 ] && return "${retval}" |
|
|
# Now that the dependency cache are up to date, make sure these | # Now that the dependency cache are up to date, make sure these |
# are marked as started ... | # are marked as started ... |
( | ( |
|
profiling name "mark started" |
|
|
# Needed for mark_service_started() | # Needed for mark_service_started() |
source "${svclib}/sh/rc-services.sh" | source "${svclib}/sh/rc-services.sh" |
| |