X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=scripts%2Fcrontab.syj;h=0513a3055ed32739c440b27c101d24bc72d29f51;hb=7cc3718928a17df678f3a6a9ee3159474594a8fc;hp=e8c0c1157d85eec49cb18bc99393d84d3f14d571;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/scripts/crontab.syj b/scripts/crontab.syj index e8c0c11..0513a30 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -2,4 +2,12 @@ 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 '{}' \; +# every day, vacuum tables +48 4 * * * psql syj syj -c "VACUUM ANALYZE users" > /dev/null +48 4 * * * psql syj syj -c "VACUUM ANALYZE paths" > /dev/null +48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions" > /dev/null +# every day, clear lighttpd compress cache +12 5 * * * find /data/work/syj/lighttpd/lighttpd-cache -type f -mtime +2 | xargs -r rm