X
X
X
X

Knowledge Base

HomepageKnowledge BaseLinuxCpanelClean tmpDSK with tmpwatch

Clean tmpDSK with tmpwatch

When you use cache modules such as memcache, xcache, eAccelerator and others on your cpanel server, then the modules would be very wasteful consuming temporary space from your servers.

One way to clear the cache in tmpDSK that are not used within a certain time is to use tmpwatch. Here’s an example of using tmp watch that at the store in the crontab:

0 * * * * /usr/sbin/tmpwatch--mtime--all 24 /tmp

Meaning of crontab command above is the server will clear the cache in tmpDSK that are not in use within 24 hours and orders to remove it will be repeated every 1 hour

The question now, whether it is safe for your server? the answer, I do it and never felt there was a problem



Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(40859 times viewed / 1 people found it helpful)

Powered by WISECP
Top