Does Ubuntu Server have any sort of cron job to automatically clear /tmp?
Posted
by DWilliams
on Server Fault
See other posts from Server Fault
or by DWilliams
Published on 2010-05-20T18:36:34Z
Indexed on
2010/05/20
18:40 UTC
Read the original article
Hit count: 323
I know it clears out /tmp on reboots, but I haven't been able to find any sort of cron job on my server that clears /tmp. I recently set up a script that writes lots of files to /tmp and my server usually goes several months between reboots so I'm concerned about it being cluttered.
I've seen several other distros that have a tmpwatch script installed by default. Ubuntu's repository seems to have replaced tmpwatch with tmpreaper.
Is there any mechanism in place on Ubuntu (8.04 currently, soon to be upgraded to 10.04 when I get around to it) to clean up temp files on a server that doesn't regularly reboot or do I need to install tmpreaper?
© Server Fault or respective owner