"background updates of print queues via a dedicated process"

Tim Potter tpot at samba.org
Wed Feb 12 06:28:48 GMT 2003


On Tue, Feb 11, 2003 at 11:32:09PM -0600, Gerald (Jerry) Carter wrote:

> On Wed, 12 Feb 2003, Martin Pool wrote:
> 
> > The Samba 3.0 roadmap mentions this as a wishlist item for 3.x.  I'm
> > interested in looking at it. 
> > 
> > Has anybody else already worked on it?
> 
> JF started on it, but do to some bugs it got sidetracked after killing 
> the build farm machines.

My idea which I've probably told a couple of you is to use kernel
dnotify stuff to work out when jobs are spooled or removed.  So a
daemon would get a signal when a spool file is created and add that to
printing.tdb.  When the file completes spooling lpd deletes it and the
daemon gets another signal saying that file has deleted.

This way there is no polling done at all and printing.tdb is always up
to date.


Tim.


More information about the samba-technical mailing list