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

  1. Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
  2. 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.
  3. Run the following command to remove files older than the new retention time immediately.
    cagefsctl --tmpwatch
Was this answer helpful? 0 Users Found This Useful (0 Votes)