Linux CUPS自动重新添加打印机?

我们有一台运行CUPS的Redhat机器(2.6.9-42.ELsmp).偶尔,人们会将大文件发送到打印机,然后它会卡住,因此他们会重新启动打印机. 300秒后没有响应,打印机变为不可用.然后,CUPS将从可用的打印机列表中删除打印机,并且不再尝试.

无论如何我可以设置它以便CUPS将尝试与打印机通信,以便在打印机再次联机时将其重新添加到列表中?

我们“解决”这种方式的方式是每次发生时,我们手动修改printers.conf文件,将打印机状态更改为“空闲”,然后重新启动服务.我相信这样做会更好,不是吗?

谢谢,

担.

解决方法

这应该通过更改cupsd.conf或printers.conf中的ErrorPolicy来修复:

CUPS 1.3/Mac OS X 10.5ErrorPolicy

Examples

ErrorPolicy abort-job

ErrorPolicy retry-job

ErrorPolicy stop-printer

Description

The ErrorPolicy directive defines the default policy that is used when a backend is unable to send a print job to the printer.
[…]

见:http://www.cups.org/doc-1.4/ref-cupsd-conf.html#ErrorPolicy

认为:

stop-printer – Stop the printer and keep the job for future printing

但是你可能想要:

retry-job – Retry the job after waiting for N seconds […]

(或者可能重试这个工作).

注意:在CUPS V1.4上,它被称为FatalErrors.

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...