Samba fails to share printer in 10.04 (convert cups to upstart)

Bug #587548 reported by MagnusPI
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: samba

Smbd daemon starts before cups daemon and therefore fails to see and share printer.
If you manually restart smbd, printers are seen.

Samba version: 2:3.4.7~dfsg-1ubuntu3

Without doing nothing after the system boot
igor@hjemme:~$ smbclient -L /192.168.1.2
Anonymous login successful
Domain=[STRINGA] OS=[Unix] Server=[Samba 3.4.7]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (hjemme server (Samba, Ubuntu))

After restarting smbd
igor@hjemme:~$ smbclient -L /192.168.1.2
Domain=[STRINGA] OS=[Unix] Server=[Samba 3.4.7]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (hjemme server (Samba, Ubuntu))
 LaserJet-1100 Printer Hewlett-Packard HP LaserJet 1100

Here you can see that the smbd is started before cups
igor@hjemme:~$ ps aux | grep smb
root 598 0.0 0.0 15304 312 ? Ss 15:02 0:00 smbd -F
root 667 0.0 0.0 15304 96 ? S 15:02 0:00 smbd -F

igor@hjemme:~$ ps aux | grep cups
root 832 0.0 0.1 6824 568 ? Ss 15:02 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf

Revision history for this message
Chuck Short (zulcss) wrote :

Cups need to be converted to upstart as well.

affects: samba (Ubuntu) → cups (Ubuntu)
Revision history for this message
volinthius (volinthius) wrote :

I'm seeing this as well. The cups init script contains:

...
# X-Start-Before: samba
# X-Stop-After: samba
...

It seems that 'X-Start-Before' and 'X-Stop-After' aren't compatible with upstart. I fixed this by calling 'initctl emit cups-started' when starting cups, and hooking on to that in samba init script. The correct fix would be to convert cups to upstart.

Ubuntu Server 10.04
samba: 2:3.4.7~dfsg-1ubuntu3
cups: 1.4.3-1

diego! (sirdiego)
Changed in cups (Ubuntu):
status: New → Confirmed
Revision history for this message
Krzysztof Matusik (krzysztof-matusik) wrote :

I think this is a duplicate of https://bugs.launchpad.net/ubuntu/+source/cups/+bug/520497
as this could be easily solved converting cups to upstart.

regards

summary: - Samba fails to share printer in 10.04
+ Samba fails to share printer in 10.04 (convert cups to upstart)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.