[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Leaving files in /tmp



Hi,

each time /etc/rcS.d/S35mountall.sh is executed, the /tmp directory is
cleaned of file lying around there. Some packages create files in that
directory and don't care deleting them, relying on that cleaning
mechanism. However, on machines that are hardly rebooted, there is no
cleaning, and /tmp may get full of (hopefully small) files. 

In some cases (e.g. #249597, which brought up the issue) there are
better solutions than leaving files there. But there may be other cases,
and the FHS does at least not forbid it, AFAIS.

Should there be some cron job that does the cleaning if the machine
isn't rebooted? Note that it could be hard to figure out which files are
actually useless.

Or should there be some policy that all programs should remove files in
/tmp as soon it doesn't need them any more, and remove old ones if it
quit unexpectedly?


Any comments are appreciated.

Regards, Frank
-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie



Reply to: