From: Thierry Parmentelat Date: Wed, 14 Dec 2011 17:24:36 +0000 (+0100) Subject: review example cron file that was broken X-Git-Tag: sfa-2.0-6~8 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=00af7ab35acb6d86b1c024add91d6a8133f7fa88 review example cron file that was broken --- 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