From: arno Date: Thu, 9 Sep 2010 11:00:22 +0000 (+0200) Subject: removes old sessions files in crontab X-Git-Tag: v0.2~6 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=c2349d8863a6366ff512d6c895fc0b6f7ad16207 removes old sessions files in crontab --- diff --git a/scripts/crontab.syj b/scripts/crontab.syj index e8c0c11..78d48be 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -2,4 +2,6 @@ MAILTO=arno@renevier.net # every 5 minutes, call syj php cron */5 * * * * /usr/bin/wget --header="Host: osm-syj.crans.org" http://localhost/cron -O /dev/null -o /dev/null # every month, update geoip db -0 0 3 * * /data/project/syj/scripts/updategeoip.sh +12 3 3 * * /data/project/syj/scripts/updategeoip.sh +# every day, delete old sessions files +47 4 * * * find /tmp/ -name "sess_*" -user syj -ctime +45 -exec rm -f '{}' \;