Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: mutation111 on May 28, 2007, 08:53:18 PM

Title: cron job /tmp
Post by: mutation111 on May 28, 2007, 08:53:18 PM
is it possible to setup a cron job to delete the content of /tmp?  /tmp fills up completely every few weeks.

Thanx

Mike
Title: cron job /tmp
Post by: mmccarn on May 30, 2007, 02:58:21 AM
It should be pretty easy to write a script to clear out /tmp -- but I run 10 or so SME boxes and none of them fill the /tmp folder every couple of weeks.

Of course, my SME seems to have a job scheduled (/etc/cron.daily/tmpwatch)  that looks like it clears out /tmp and some other folders...

the files in /etc/cron.daily are run daily as scheduled in /etc/crontab...

Perhaps something has happened to your default /etc/crontab or the contents of /etc/cron.daily?