|
|
Files in these directories which are not accessed within the last n days will be removed, where n is the number of days specified under the variable FILEAGING in /etc/default/cleantmp. By default, FILEAGING is 7. Users can change the number of days for FILEAGING.
/usr/lib/cleantmp is run as a cron job every day at 3:00 a.m. Refer to /usr/spool/cron/crontabs/root on the system. The superuser can edit this file to change the frequency and time at which /usr/lib/cleantmp is run. If the directories specified do not exist or if they are mount points and the filesystem is not mounted, cleantmp will send mail to root saying that the directory does not exist.
If FILEAGING is specified as a number less than zero, all files will be removed each night; in this case, cleantmp sends its error log messages to the system console (/dev/console).
The format of /etc/default/cleantmp is as follows:
FILEAGING=n
TMPDIRS=temp_dir ...
cleantmp accepts the following option: