I run CUPS printing on a number of multiuser Linux application servers. The systems are RHEL or CentOS version 4, 5 or 6. Starting the EL5, the CUPS print server defaults to an error policy that basically disables the printer when there's an error or interruption (USB cable disconnect, network error, paper jam, etc.). This is the ErrorPolicy
directive in printer's stanza in the /etc/cups/printers.conf
file.
<Printer backupZ4>
Info backupZ4
DeviceURI socket://backupZ4:9100
State Idle
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
I normally change this field to ErrorPolicy retry-job
manually in the config file or when I create the printer via the command line:
lpadmin -p backupZ4 -v socket://backupZ4:9100 -o printer-error-policy=retry-job -E
When other users or vendors manage the print system, they often forget this change, which results in printers being hard disabled following a paper jam or other blips that need to be corrected with a cupsenable
.
I'd like to know how to make retry-job
the default ErrorPolicy in CUPS versus stop-printer
.