PDA

View Full Version : plesk's cron jobs


nuthead
29th July 2004, 02:32 AM
I was just wondering if the followign was correct for Plesk's cron
* /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/report/autoreport.php --auto daily >/dev/null 2>&1
17 7 1 * * /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/report/autoreport.php --auto monthly >/dev/null 2>&1
17 7 * * 1 /usr/local/psa/admin/bin/php /usr/local/psa/admin/plib/report/autoreport.php --auto weekly >/dev/null 2>&1
30 * * * * /usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1
7 4 * * 7 /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1
14 5 * * 7 /usr/local/psa/bin/mysqldump.sh >/dev/null 2>&1
47 * * * 7 /usr/sbin/ntpdate -b -s time.nist.gov > /dev/null 2>&1
its mainly the last 3 im curious about because I rememebr a post a while ago (i think it was about plesk 7.0.3) setting the DW column from * to 7, just wondered if this is set up ok or not

cheers

jimroe
29th July 2004, 06:06 AM
For what it's worth - setting the DW to 7 when you want * may not do what you expect - cron interprets a 7 the same as it interprets a 0 - in other words Sunday, not every day.

This is probably a bug that's been around for a while.

nuthead
29th July 2004, 08:22 AM
Originally posted by jimroe
cron interprets a 7 the same as it interprets a 0 - in other words Sunday, not every day.
I know that which is why the question was should it actually be *? I don't know as I didn't create Plesk, I was hoping somebody would tell me if my cron setup was correct or not...

jimroe
30th July 2004, 10:06 PM
If you want the task to run every day, then the DW field SHOULD be * not 7. Plesk has configured cron incorrectly - in what appears to be an unfixed bug in the Plesk cron manager.

nuthead
31st July 2004, 04:40 AM
ok, so I'll just edit the cron jobs and turn the 7's to * then :)