I have now done modifications on the CUPS daemon (Trusty, cups
1.7.1-5ubuntu3) so that it

- does not require avahi-daemon be started before cupsd. If avahi-daemon is 
started later, cupsd picks it up anyway and so starts Bonjour-broadcasting its 
shared printers as soon as avahi-daemon is up and running.
- is robust against stopping and restarting avahi-daemon. Bonjour broadcasts of 
shared printers stop when avahi-daemon stops and start gain when avahi-daemon 
starts again.

This eliminates the start order dependency between cupd and avahi-daemon
(cups-browsed has similar functionality, so there are no startup order
dependencies between the three).

In addition it improves server robustness and usability, as restarting
avahi-daemon (after a configuration change for example) does not require
restarting cups or cups-browsed any more.

So I want everyone with this problem to do a test:

First, if you are not  running Trusty (14.04 LTS under development),
install this system on a USB stick or a spare machine/partition. Boot
the system, set up printers and share them. Share also printers on other
machines so that they get visible in your test system. Check whether the
printer sharing in both directions works.

Now edit the files /etc/init/cups.conf and /etc/init/cups-browsed.conf
removing the line

          and started avahi-daemon

After that reboot your test system and check whether the printer sharing
in both directions works.

Uninstall the avahi-daemon package and see whether after reboot cupsd
and cups-browsed are running. You will not have printer sharing but
should be able to print locally. Install avahi-daemon again, printer
sharing in both directions should kick in immediately.

Does this all work?


** Changed in: cups (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1242185

Title:
  [regression] cups-daemon  hard-depends on avahi-daemon

Status in “cups” package in Ubuntu:
  Incomplete
Status in “upstart” package in Ubuntu:
  Incomplete

Bug description:
  cups-daemon  depends on avahi-daemon

  This is probably the worst workaround possible for bug 1178172
  Which is a combination of two separate issues
   o   "cups requires avahi-daemon to be started before cups"
   o   "cups's init script won't attempt to start cups if avahi-daemon is not 
installed / running"

  There was no such issue on ubuntu 13.04 Precise or before.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1242185/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to