http://www.gentoo.org/doc/en/faq.xml#tmpportage suggests not to clean /var/tmp/portage while emerge is running (maybe because some files get old mtimes if they are extracted from old archives). The example in /etc/cron.daily/tmpwatch however does not include such a check. I think we should include a structure such as: if [[ -z $(/usr/bin/pgrep emerge) ]]; then tmpwatch /var/tmp/portage... fi Ulf
The example is all commented out by default. Feel free to modify as needed.
Created attachment 97411 [details, diff] tmpwatch.cron.patch
Thanks, fixed in CVS
(In reply to comment #3) > Thanks, fixed in CVS > Don't know if "/usr/bin/pgrep emerge" caught the emerge processes back in 2006/2007 but today it's output is empty although an emerge is running. That is because pgrep's "... pattern is normally only matched against the process name" but the process name is python: ps aww | grep emerge 9592 pts/15 S+ 1:03 /usr/bin/python2.6 /usr/bin/emerge --resume So I added option "-f" to search the full command line for the pattern and changed the pattern to "/usr/bin/emerge" not to match things like "man emerge": if [[ ... && -z $(/usr/bin/pgrep -f /usr/bin/emerge) ]]; then One could also use /usr/bin/pgrep -f "/usr/bin/python.* /usr/bin/emerge"