#!/bin/sh

#  offers startup pause to allow earlier daemons a chance 
# to get and stabilize, part of faster booting

source /etc/init.d/rcservices
if [ -e /etc/sysconfig/pause ]; then
   source /etc/sysconfig/pause
fi

#------------------------------------------------------------------------------
# Start the service.
do_start ()
{
  // skip the pause if not exists.
  if [ -n "$SERVICE_START_PAUSE" ]; then 
     echo -n "Sevice startup pause... "
     logger -t "    [BOOT]" "Startup pause."
     sleep $SERVICE_START_PAUSE
     echo "done"
     logger -t "    [BOOT]" "Startup pause completed."
  fi
  return $SUCCESS
}


#------------------------------------------------------------------------------
# Stop the service.
do_stop ()
{
  return $SUCCESS
}

# Do the service.
dispatch_service $1
