[closed] Cron clean of lshttpd swap

DoM

Well-Known Member
#1
Hi,
there is a way to set a cron job in order to clean swap directory ONLY during night ?


Waiting for your reply

Regards
 
Last edited by a moderator:

NiteWave

Administrator
#2
you can set up your own cleanup cron job at night.
an example for reference. add an entry in /etc/crontab

0 1 * * * root find /tmp/lshttpd/swap -type f -mtime +0 -delete > /dev/null 2>&1
 

NiteWave

Administrator
#4
if your cron job has cleaned up the swap directory, the original cleanup cron job will finish quickly, no impact to your server at all.
 
Top