X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=scripts%2Fcrontab.syj;h=a8b7871c85aba8391c452bc6d9cee659254298d5;hp=cf80bef8bc5f9279d621b420049264a8d229e65e;hb=c06c7fd6e6f26d31abb8d7c9a9f9e3f2d5b27d5c;hpb=bfe63b61894a100bd3d83ac86593a8d767b94920 diff --git a/scripts/crontab.syj b/scripts/crontab.syj index cf80bef..a8b7871 100644 --- a/scripts/crontab.syj +++ b/scripts/crontab.syj @@ -1,10 +1,8 @@ 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 +*/5 * * * * /data/project/syj/scripts/cron.php # every month, update geoip db 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