[rt-users] Empty directories left in /tmp

Larry Stone lcs at MIT.EDU
Wed Jun 18 18:27:37 EDT 2003


So I'm running RT 3.0.2 on Solaris 2.8, with all of the recommended CPAN
modules, Apache 1.3.27, and fastcgi instead of mod_perl.

I've observed empty directories owned by the webserver user accumulating
in /tmp.  They seem to correspond to messages processed by the mail
gateway.  The directories have 10-character names of random alphanumeric
characters.  It looks like these temporary directories are created by
the MIME module.

Has anyone got a fix for this, or noticed the same problem?  It
seems worthwhile checking Before I dive into all that perl..

Meanwhile, a cron job to run the command:
find /tmp/* -prune -type d -links 2 -name '[a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9][a-zA-Z0-9]' -mtime +1 -exec rmdir '{}' \;
cures the symptom.

    -- Larry




More information about the rt-users mailing list