CUPS starts after SAMBA; printers are not available (convert cups to upstart)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt | ||
Lucid |
Won't Fix
|
Medium
|
Clint Byrum | ||
samba (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Lucid |
Invalid
|
High
|
Unassigned | ||
upstart (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cups
When I boot my computer, Samba is trying to connect on CUPS but it can't because it's not started yet. Samba timeout connecting on CUPS before this last one is completely started.
I've be able to workaround this issue by modifying the startup order:
sudo mv /etc/rc2.d/S50cups /etc/rc2.d/S15cups
Since it is working fine but a bit worry on the next update of cups. How will it react in rc2.d.
Could you make a permanent fix for this?
Regards
ProblemType: Bug
Architecture: i386
CupsErrorLog:
Date: Tue Dec 8 13:48:50 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Lpstat: device for E210: usb://Lexmark/E210
Lsusb:
Bus 001 Device 005: ID 0bda:0111 Realtek Semiconductor Corp. Card Reader
Bus 001 Device 004: ID 15a9:0004
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 046d:c512 Logitech, Inc. LX-700 Cordless Desktop Receiver
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: HP-Pavilion GX615AA-A2L s3300f
NonfreeKernelMo
Package: cups 1.4.1-5ubuntu2.1
Papersize: letter
PpdFiles: E210: Lexmark E210 Foomatic/gdi (recommended)
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=en_CA.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cups
Uname: Linux 2.6.31-16-generic i686
dmi.bios.date: 11/14/2007
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 5.09
dmi.board.name: Acacia
dmi.board.vendor: ASUSTek Computer INC.
dmi.board.version: 1.02
dmi.chassis.type: 3
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: GX615AA-A2L s3300f
dmi.sys.vendor: HP-Pavilion
Related branches
tags: | added: patch |
summary: |
- CUPS starts after SAMBA; printers are not available + CUPS starts after SAMBA; printers are not available (convert cups to + upstart) |
Changed in samba (Ubuntu): | |
status: | Invalid → Triaged |
Changed in samba (Ubuntu Lucid): | |
status: | Invalid → Triaged |
importance: | Undecided → High |
Changed in samba (Ubuntu): | |
importance: | Undecided → High |
milestone: | none → ubuntu-10.10 |
Changed in samba (Ubuntu Lucid): | |
milestone: | none → lucid-updates |
Changed in cups (Ubuntu Lucid): | |
milestone: | none → ubuntu-10.04.3 |
Bingo, this is the bug I've been looking for.
While I've seen some bugs and forum posts regarding insserv getting called upon installation of various packages and failing, I haven't caught anything automatically running insserv at all. *That* would seem to be the problem, as investigating a system here, /etc/init.d/cups already contains the lines:
# X-Start-Before: samba
# X-Stop-After: samba
...
I failed to notice that on a machine where this was actually a problem, and thus [also] added cups to /etc/init.d/samba:
# Required-Start: $network $local_fs $remote_fs cups
...before realizing I had to actually run insserv myself, which promptly reordered everything properly based on those directives.
I haven't looked at a roadmap, but I sure hope all of these "base" packages will be updated with "native" upstart scripts for Lucid / 10.04; living with both the new and legacy systems just makes everything twice as complicated, and if it doesn't get done for the LTS, nobody's going to want to 'break' the LTS [or worse, it'll get 'broken' later on if scripts are suddenly backported/packages updated to include them]. Better to make the push now, then it should be all sorted out by release-candidate time.