Comment 183 for bug 554172

Revision history for this message
Wout (wout-bliepbliep) wrote : Re: [Bug 554172] Re: CUPS and other system services not starting at boot

My understanding of the problem is that /dev/console exists but isn't
writable.
Also, it appears it becomes writable after a little while.

Would waiting for /dev/console to become writable be a possible workaround?
For example by adding something like this to the relevant /etc/init/*
scripts:

pre-start script
  while ! /bin/dd if=/dev/null of=/dev/console 2>/dev/null
  do
    sleep 1
  done
end script

If that works it may even be possible to restore the 'console output' lines
(though this depends on whether they take effect after pre-start is
executed).
Note that this will hang if /dev/console does not become writable!!

Another way to accomplish the above would be to create a
/etc/init/console-ready job with the above pre-start section.
Jobs that require /dev/console to be writable could then be made dependent
on console-ready.

I'd try the above myself but I've moved to Debian after too many issues with
Ubuntu 10.04.
Sad as generally I really like Ubuntu.

Wout

On Mon, Jul 19, 2010 at 22:26, Mike Bianchi <email address hidden>wrote:

> On Mon, Jul 19, 2010 at 08:04:03PM -0000, phireph0x wrote:
> > The workaround described in
> > http://ubuntuforums.org/showpost.php?p=9480172&postcount=20 doesn't work
> > for me. I still have services that don't start on system reboot.
>
> See
>
> https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/543506/comments/99
> and
>
> https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/543506/comments/81
>
> Did you follow those instructions?
>
> --
> CUPS and other system services not starting at boot
> https://bugs.launchpad.net/bugs/554172
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “linux” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: cups
>
> Cups is not loading on my machine at boot, must run sudo /etc/init.d/cups
> start to after booting to print.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: cups 1.4.2-10
> ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
> Uname: Linux 2.6.32-19-generic i686
> NonfreeKernelModules: nvidia
> Architecture: i386
> Date: Fri Apr 2 13:07:35 2010
> InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100401)
> Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat:
> Connection refused
> MachineType: Dell Inc. Studio XPS 1340
> Papersize: letter
> PpdFiles: Brother-HL-2170W-series: Brother HL-2170W Foomatic/pxlmono
> (recommended)
> ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-19-generic
> root=UUID=615bbe85-506a-4152-af5a-a5c2da303d83 ro quiet splash
> ProcEnviron:
> LANG=en_US.utf8
> SHELL=/bin/bash
> SourcePackage: cups
> dmi.bios.date: 09/08/2009
> dmi.bios.vendor: Dell Inc.
> dmi.bios.version: A11
> dmi.board.name: 0Y279R
> dmi.board.vendor: Dell Inc.
> dmi.board.version: A11
> dmi.chassis.asset.tag: 1234567890
> dmi.chassis.type: 8
> dmi.chassis.vendor: Dell Inc.
> dmi.chassis.version: A11
> dmi.modalias:
> dmi:bvnDellInc.:bvrA11:bd09/08/2009:svnDellInc.:pnStudioXPS1340:pvrA11:rvnDellInc.:rn0Y279R:rvrA11:cvnDellInc.:ct8:cvrA11:
> dmi.product.name: Studio XPS 1340
> dmi.product.version: A11
> dmi.sys.vendor: Dell Inc.
>
>
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554172/+subscribe
>