Current time: 11-24-2024, 06:40 AM Hello There, Guest! (LoginRegister)


Post Reply 
ispcpphptemp.sh improvement
Author Message
supaplex Offline
Junior Member
*

Posts: 22
Joined: Jan 2009
Reputation: 0
Post: #1
ispcpphptemp.sh improvement
/var/www/ispcp/engine/tools/ispcpphptemp.sh runs every 30 minutes. I did some investigating, and found some insanely large phptmp directory inodes present on the system. This is possibly due to this script not running for some period of time, then turned back on again. it's hard to say when the issue really started, because I don't have enough information about it.

However, this script replaced the "find ..." action used to remove all the phptmp files that are too old for that site.

It also gracefully whines about bad uid assignments to the phptmp, as well as the phptmp directory size when it's over 1mb.

export ctime=$max
nice -n 19 /usr/local/sbin/ispcp-phptmp-cleanup ${tmpdir}
takes the place of find before in ispcpphptemp.sh. I haven't made the trouble to just convert the entire shell script to one Perl script. (maybe later)

Thanks,


Scott


Attached File(s)
.txt  ispcp-phptmp-cleanup.txt (Size: 2.31 KB / Downloads: 17)
(This post was last modified: 02-13-2009 04:04 PM by supaplex.)
02-13-2009 03:58 PM
Find all posts by this user Quote this message in a reply
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #2
RE: ispcpphptemp.sh improvement
please create a ticket and attach a patch Smile
02-19-2009 03:22 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)