Created attachment 329383 [details]
cups changes required
Description of problem:
(Filing for completeness sake - have already talked a bit with Tim about this over e-mail)
Looking at cups, it has code to start on demand via launchd when a connection attempt is made to the cups socket address. It's possible to use a similar mechanism to start cups on demand via xinetd, so it can be started on demand instead of always running.
- you trade starting cups always for starting xinetd always
- you need to do 'something' for when you share printers
- the xinetd file requires lockstep agreement with any 'Listen' statements in cupsd.conf
Version-Release number of selected component (if applicable):
Created attachment 329384 [details]
xinetd service file
Created attachment 329385 [details]
SELinux policy module
SELinux policy requires changes for cups to work when it's launched from xinetd so that it can properly handle the socket it's passed.
Busy with more pressing stuff at the moment...
Too risky a change until 1.4 has settled down a lot more.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.
More information and reason for this action is here:
(In reply to comment #5)
> Too risky a change until 1.4 has settled down a lot more.
This will be a *lot* easier to do once mDNS is the default discovery and browse mechanism in CUPS. That won't be until CUPS 1.5 though.
The basic problem is that if cupsd is not around to hear CUPS Browse packets it might be a long time (minutes) after cupsd is started before they are re-sent. So the user might be sat in front of a print dialog for several minutes before they can get on with printing.
With mDNS this would not be a problem as avahi would be already be doing the listening.
Tim - given systemd, should this bug be closed in favor of a systemd implementation, or at least retitled/retargeted?
Yes, retitling. We are fairly close to full Bonjour support now, and Lennart has told me he has patches for systemd integration in cupsd.
possible duplicate bug 690766
*** This bug has been marked as a duplicate of bug 690766 ***