X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=cron.d%2Fsfa.cron;fp=cron.d%2Fsfa.cron;h=00d27b6cf7b1fde2beedc8bd74be8d97902b45d6;hp=c92afb6d7c247dc383423e1939339a3b29ff385b;hb=00af7ab35acb6d86b1c024add91d6a8133f7fa88;hpb=da768be8e74e4b77796fa6e65a7b6b34112ad6dc diff --git a/cron.d/sfa.cron b/cron.d/sfa.cron index c92afb6d..00d27b6c 100644 --- a/cron.d/sfa.cron +++ b/cron.d/sfa.cron @@ -1,8 +1,14 @@ +# +# this example file should be installed in /etc/cron.d owned by root +# SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin +# xxx replace this MAILTO=server-msgs@planet-lab.org HOME=/ # # minute hour day-of-month month day-of-week user command -0 * * * * /usr/bin/sfa-import-plc.py > /dev/null 2>&1 -0 0 * * * /usr/bin/sfa-clean-peer-records.py > /dev/null 2>&1 +# once or twice an hour makes sense +0 * * * * root /usr/bin/sfa-import-plc.py >> /var/log/sfa_import.log 2>&1 +# this is needed only if you run RefreshPeer +#0 0 * * * root /usr/bin/sfa-clean-peer-records.py >> /var/log/sfa_import.log 2>&1