Files in /var/spool/cups may not be removed as configured if CUPS is restarted in RHEL 7

Solution Unverified - Updated -

Issue

  • We have defined the following settings in /etc/cups/cupsd.conf:

    MaxJobs 0
    PreserveJobHistory 30d
    

    but files in /var/spool/cups have not been deleted even after 30 days. The CUPS service has been restarted, but that made no difference. There are many unneeded print job history files older than 30 days.

  • CUPS printing does not remove completed jobs after reboot. If the cupsd.conf setting for PreserveJobHistory is set to a time value, and jobs have been completed, but the time to remove them has not expired, the jobs will not be removed after a reboot.

  • In cupsd.conf, I have the following settings:

    MaxJobs 7000
    PreserveJobFiles 3d
    PreserveJobHistory 3d
    

    After restarting the service, I have files in /var/spool/cups that are up to 9 days old.

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Common Unix Printing System (CUPS) 1.6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content