D DoM Well-Known Member Jan 20, 2011 #1 Jan 20, 2011 #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: Jan 21, 2011
Hi, there is a way to set a cron job in order to clean swap directory ONLY during night ? Waiting for your reply Regards
N NiteWave Administrator Jan 20, 2011 #2 Jan 20, 2011 #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
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
D DoM Well-Known Member Jan 20, 2011 #3 Jan 20, 2011 #3 Hi, but original cron script will run anyway right ? There is no way to stop it ? Best regards
N NiteWave Administrator Jan 20, 2011 #4 Jan 20, 2011 #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.
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.