Bug 194856 - [patch] print/cups-base: cupsd starts before mdnsd during boot, fails to advertise printers.
Summary: [patch] print/cups-base: cupsd starts before mdnsd during boot, fails to adve...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-06 04:25 UTC by Adrian Waters
Modified: 2014-11-07 13:04 UTC (History)
1 user (show)

See Also:


Attachments
Modify REQUIRE line in files/cupsd.in for Zeroconf. (1.07 KB, patch)
2014-11-06 04:25 UTC, Adrian Waters
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Waters 2014-11-06 04:25:14 UTC
Created attachment 149115 [details]
Modify REQUIRE line in files/cupsd.in for Zeroconf.

During boot, cupsd runs before mdnsd.  This leads to a situation where cupsd fails to register shared printers for Zeroconf because mdnsd is not running.  Restarting cupsd successfully registers the printers.

The attached patch is based on the way net/netatalk3 handles this situation.  It adds mdnsd or avahi_daemon to the REQUIRE line in the cupsd RC script.

Bug encountered on a 9.3-RELEASE amd64 system.
Comment 1 commit-hook freebsd_committer freebsd_triage 2014-11-07 13:03:33 UTC
A commit references this bug:

Author: tijl
Date: Fri Nov  7 13:03:11 UTC 2014
New revision: 372260
URL: https://svnweb.freebsd.org/changeset/ports/372260

Log:
  - Let the rc script require the mdnsd or avahi_daemon rc scripts [1]
  - Fix two getsockopt calls so they return peer credentials correctly [2]

  PR:		194856 [1], 191515 [2]
  Submitted by:	Adrian Waters <draenan@gmail.com> [1]
  Submitted by:	Bengt Ahlgren <bengta@sics.se> [2]

Changes:
  head/print/cups-base/Makefile
  head/print/cups-base/files/cupsd.in
  head/print/cups-base/files/patch-scheduler__auth.c