Files in /var/spool/cups may not be removed as configured if CUPS is restarted in RHEL 7
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 forPreserveJobHistory
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.