I have a server with a 2GB /tmp partition, and while the server is running fine, eaccelerator is gradually filling up the /tmp directory (1.5GB of the 2GB). Is there an easy way to clear out the cache that won't break stuff (I know an rm -rf will do the trick, but I worry that'll break something) or at least clean out the files that are older and unused/needed? I just basically want it to go through and clean out all the stuff that's older than a few days.
Update about 20 minutes later: Found this little gem (only works on CentOS/RedHat systems):Clears out all files modified older than two weeks ago in the eaccelerator folder. Worked like a chart, eaccelerator still appears to work fine, and /tmp free space is MUCH better (1.8GB free).Code:tmpwatch --mtime --all 336 /tmp/eaccelerator
-Jake



LinkBack URL
About LinkBacks




Reply With Quote




