Bug 146973 - app-admin/tmpwatch: /var/tmp/portage shall not be cleaned if emerge is running
Bug#: 146973 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: maintainer-needed@gentoo.org Reported By: UlfSchaper@gmx.de
Component: Ebuilds
URL: 
Summary: app-admin/tmpwatch: /var/tmp/portage shall not be cleaned if emerge is running
Keywords:  
Status Whiteboard: 
Opened: 2006-09-09 10:15 0000
Description:   Opened: 2006-09-09 10:15 0000
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

------- Comment #1 From Jakub Moc (RETIRED) 2006-09-09 10:19:58 0000 -------
The example is all commented out by default. Feel free to modify as needed.

------- Comment #2 From Cédric Krier 2006-09-19 06:38:13 0000 -------
Created an attachment (id=97411) [details]
tmpwatch.cron.patch

------- Comment #3 From Charlie Shepherd (RETIRED) 2007-01-27 16:48:33 0000 -------
Thanks, fixed in CVS