Comment 18 for bug 139368

Revision history for this message
swift99 (johnson-d) wrote :

I saw this start just after I installed the sound suite.

The workaround I have is that I added the line "sleep 10s" to /etc/init.d/dbus, as follows:

start_it_up()
{
  if [ ! -d $PIDDIR ]; then
    mkdir -p $PIDDIR
    chown $DAEMONUSER $PIDDIR
    chgrp $DAEMONUSER $PIDDIR
  fi
  if [ -e $PIDFILE ]; then
    PIDDIR=/proc/$(cat $PIDFILE)
    if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${DAEMON}" ]; then
      log_success_msg "$DESC already started; not starting."
      return
    else
      log_success_msg "Removing stale PID file $PIDFILE."
      rm -f $PIDFILE
    fi
  fi
  create_machineid

  log_daemon_msg "Starting $DESC" "$NAME"
  start-stop-daemon --start --quiet --pidfile $PIDFILE \
    --user $DAEMONUSER --exec $DAEMON -- --system $PARAMS
  log_end_msg $?
  if [ -d $EVENTDIR ]; then
      run-parts --arg=start $EVENTDIR || true
  fi
  dependent_services start

# Added to work around gnome startup inability to talk
# Wait long enough before moving forward that everything has stabilized a bit
# so the system is not so busy when gnome startup tries to talk to gdm.
  sleep 10s
# End addition
}