Comment 4 for bug 1242185

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

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?