[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best practices for cron jobs?



Hi Duncan!

You wrote:

> Adding a sleep $[ $RANDOM % 60 ] is probably not a good idea as it will
> hold up all the other cronjobs that should be run.

What about making sure the spamassassin cron.daily job is the last one
to run (by calling it ZZspamassassin or so)?  It might even be worth it
to put the random wait in its own /etc/cron.daily/ZZ_randomwait, so that
other packages could also benefit from the same construction.

Regards,
Bas.
-- 
+--------------------------------------------------------------+
| Bas Zoetekouw      | Sweet day, so cool, so calm, so bright, |
|--------------------| The bridall of the earth and skie:      |
| bas@zoetekouw.net  | The dew shall weep thy fall tonight;    |
+--------------------|                    For thou must die.   |
                     +-----------------------------------------+



Reply to: