[cups.development] [RFE] STR #1265: When cupsd is loaded, set queue to stopped if required backend does not exist

Jim Fehlig jfehlig at novell.com
Thu Sep 8 15:35:36 PDT 2005


[STR New]

If a backend required by a queue does not exist, set the queue state to
stopped when cupsd is loaded.  No use having the queue in ready state when
 there will be no possibility to print jobs due to non-existent backend.

Attached is a patch to scheduler/printers.c created from trunk.  Added a
local function named check_printer_state_at_load() which at this time only
verifies that backend specified by scheme component of device uri actually
exists in the proper location.  The check is ignored if backend type is
"file".

check_printer_state_at_load() is called by LoadAllPrinters() after the
entire printer record is read from printers.conf.  Additional state checks
may be added to check_printer_state_at_load() in the future.

Link: http://www.cups.org/str.php?L1265
Version: 1.2-feature
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: printers.c.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20050908/e41ee506/attachment.ksh>


More information about the cups-devel mailing list