[php-maint] Bug#711291: , lack of testers with too many session files.

Pavel V. pavel2000 at ngs.ru
Mon Feb 24 06:25:18 UTC 2014


Hi, all.

>you might want to pull cron job:
>http://anonscm.debian.org/gitweb/?p=pkg-php/php.git;a=blob;f=debian/php5-common.php5.cron.d;h=8865fddb4c451f38f0d6f1ae722a3082c2eb5f81;hb=refs/heads/debian-experimental
>
>and sessionclean script:
>http://anonscm.debian.org/gitweb/?p=pkg-php/php.git;a=blob;f=debian/sessionclean;h=a5f5360d015a4e74199f8c71152ab96f0bd4bb33;hb=refs/heads/debian-experimental
>
>I have already improved the session clean script, but it didn't make it
>into wheezy, because of lack of testers with too many session files.

I have found https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711291#10 while trying to resolve my
problem with "find ... fuser" on directory with 140k sessions and decided to try proposed solution.

New solution works much-much better than old, but while making tests I got the following message:

root at server:/var/lib/php5# [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 180
find: warning: you have specified the -ignore_readdir_race option after a non-option argument -type, but options are not positional
(-ignore_readdir_race affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

I have Debian 7.3 with findutils-4.4.2-4 amd64

After I changed options order, message has gone away. My improved variant is:

# find all files older then maxlifetime
find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin +${2} -delete

Thanks for your work, maintainers!
Hope my report helps you.

-- 
С уважением,
 Pavel                          mailto:pavel2000 at ngs.ru



More information about the pkg-php-maint mailing list