[cups.general] Old Job Clean up
Michael Sweet
msweet at apple.com
Mon Apr 25 20:30:01 PDT 2011
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
More information about the cups
mailing list