Introduction
CageFS cleans up files in the users' /tmp folders daily. It will only remove files that have not been accessed for 30 days. Reducing how long the files are kept may be necessary in some cases.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following command to set the new length of time files are kept after their last access.
cagefsctl --set-tmpwatch='/usr/sbin/tmpwatch -umclq $x'
Please note that $x should be replaced with the number of hours to keep a file after it has been accessed. - Run the following command to remove files older than the new retention time immediately.
cagefsctl --tmpwatch