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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1242185

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to