Create a script to delete files daily.
Create the file: /usr/local/vesta/bin/vestacp_sess.sh with content
Code: Select all
/usr/bin/find /home/*/tmp -name "sess_*" -type f -cmin +24 -print0 | /usr/bin/xargs -r -0 rm >/dev/null 2>&1
Code: Select all
find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete
Code: Select all
chmod a+x /usr/local/vesta/bin/vestacp_sess.sh
Another method:
Standard kronovskumu scavenger debian following line:
file location: "/etc/cron.d/php5"
Add this line:
Code: Select all
09,39 * * * * root /usr/bin/find /home/*/tmp -name "sess_*" -type f -cmin +24 -print0 | /usr/bin/xargs -r -0 rm >/dev/null 2>&1
Hope it helps.