Hi,

5.3.6-12 has already updated crontab file without xargs.

Ondřej Surý

On 20.6.2011, at 10:34, Martin Meredith <m...@debian.org> wrote:

> Package: php5
> Version: 5.3.6-12
> 
> I've had a problem where somehow, I've managed to end up with approximately 
> 1,000,000 session files on my server.
> 
> Due to the large amount of files, the current crontab to clear them was 
> unable to deal with it (xargs would fail to take in the HUGE list of files).
> 
> It seems that rather than using xargs (even with the limit), that using the 
> -exec option of find might be a little bit more sane?
> 
> 
> 09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d 
> /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin 
> +$(/usr/lib/php5/maxlifetime) -exec rm {} \;;
> 
> Is what I currently have in my cron script to work around this issue.
> 
> 
> 
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-ma...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to