]> dev.renevier.net Git - syj.git/blob - scripts/crontab.syj
0360fd4a75f2deafb6f2f9829bff6310a86f0990
[syj.git] / scripts / crontab.syj
1 MAILTO=arno@renevier.net
2 # every 5 minutes, call syj php cron
3 */5 * * * * /usr/bin/wget --header="Host: osm-syj.crans.org" http://localhost/cron -O /dev/null  -o /dev/null
4 # every month, update geoip db
5 12 3 3 * * /data/project/syj/scripts/updategeoip.sh
6 # every day, delete old sessions files
7 47 4 * * * find /tmp/ -name "sess_*" -user syj  -ctime +45 -exec rm -f '{}' \;
8 # every day, vacuum tables
9 48 4 * * * psql syj syj -c "VACUUM ANALYZE users" > /dev/null
10 48 4 * * * psql syj syj -c "VACUUM ANALYZE paths" > /dev/null
11 48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions" > /dev/null