Automatically clean /tmp directory

This is more of sysadmin issue, not directly related to Webmin, however since we rely on Webmin with regard almost all aspects of automatization of Linux administration I thought to get *min devs stance on this.

One one of our Virtualmin servers with almost two year uptime things got comparatively slower. Investigating the issue we found the /tmp directory got really huge with lot's of files in it. So removing them all took really long time and I thought if *min system takes care of this issue at all. Searching online has given:

  1. http://askubuntu.com/questions/20783/how-is-the-tmp-directory-cleaned-up, but that's for Ubuntu and the system in subject is CentOS

  2. https://www.virtualmin.com/node/8472 but that one remains unresolved.

  3. http://superuser.com/questions/499039/how-to-cleanup-tmp-folder-safely-o... has really interesting approach and I wonder if it possible to incorporate taking care of this issue within *.min?

Thanks.

Status: 
Closed (won't fix)

Comments

Where these files under /tmp/.webmin , or just other places in /tmp ? The former should be automatically cleaned up by Webmin .. the latter is out of our control.

Status: Active ยป Closed (won't fix)

It was the latter. Well then we will just use crontab to clean it regularly. Thanks.