[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cups
Subject:    Re: [cups.general] Old Job Clean up
From:       Michael Sweet <msweet () apple ! com>
Date:       2011-04-26 5:11:39
Message-ID: A2E17AF0-E6CC-4A45-A875-31A9AA4AD4EF () apple ! com
[Download RAW message or body]

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@easysw.com
> > > http://lists.easysw.com/mailman/listinfo/cups
> > 
> > ________________________________________________________________________
> > Michael Sweet, Senior Printing System Engineer, PWG Chair
> > 
> 
> _______________________________________________
> cups mailing list
> cups@easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair

_______________________________________________
cups mailing list
cups@easysw.com
http://lists.easysw.com/mailman/listinfo/cups


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic