如何防止杯子超时工作

cen*_*tic 4 linux printer printing cups ubuntu

我从 Ubuntu Precise (12.04) 升级到 Trusty (14.04),现在似乎 CUPS 超时作业并在 3 小时后自动删除它们。

但是,我通常不会让打印机一直运行,而是不时启动它以打印任何挂起的打印作业,因此对于无法立即打印的打印作业,我希望根本没有超时。

我如何配置 CUPS 来做到这一点?我查看了所有配置选项,但找不到任何似乎匹配的选项。

cen*_*tic 5

在搜索了更多内容后,我自己在https://www.cups.org/documentation.php/doc-2.0/man-cupsd.conf.html找到了它:

MaxJobTime seconds
    Specifies the maximum time a job may take to print before it is canceled. 
    Set to "0" to disable cancellation of "stuck" jobs. The default is "10800" (3 hours). 
Run Code Online (Sandbox Code Playgroud)