[cups.general] Old Job Clean up

Michael Sweet msweet at apple.com
Mon Apr 25 22:11:49 PDT 2011


On Apr 25, 2011, at 9:28 PM, Paul wrote:
> It actually looks like I need to do it twice to get it out of jobs.cache (or do a reload twice after deleting the c files in uptime).  Is there any adverse effects to doing it in uptime other than the cache file will be out of sync?  at least from the WI it appears that they dissapear as soon as I delete the c file.  Thanks again.

You can wipe out the job.cache file to force cupsd to re-scan the spool directory.

>> You will also need to stop and start cupsd around your cleanup...
>> 
>> On Apr 25, 2011, at 7:32 PM, Paul wrote:
>> 
>>> Looking for suggestions.  I had to set my MaxJobs to 0 because of a bunch of queued up jobs taking me over 500 queued.  I thought about setting the MaxJobs to something insanely high like 10000 so CUPS will do a little bit of it's own clean up, but for the time being i'm planing on using cron.
>>> 
>>> for job in `find /var/spool/cups -type f -iname "c*" -mtime +1 | cut -f5 -d'/' | cut -f2 -d'c'`
>>>       do
>>>        if [[ `ls -l /var/spool/cups/d$job-* 2>/dev/null | wc -l` -eq 0 ]]
>>>               then
>>>               rm -f /var/spool/cups/c$job
>>>       fi
>>> done
>>> 
>>> That will take care of the c* files in the spool directory, but is there anything else I need to do to clean up?  I'm thinking I need to do something to help purge out the /var/cache/cups/jobs.cache file.  Do i need to worry about it?  Anything else I should be concerned about?
>>> _______________________________________________
>>> cups mailing list
>>> cups at easysw.com
>>> http://lists.easysw.com/mailman/listinfo/cups
>> 
>> ________________________________________________________________________
>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>> 
> 
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list