https://bugzilla.wikimedia.org/show_bug.cgi?id=36993

--- Comment #3 from Peter Bena <benap...@gmail.com> 2012-05-21 08:39:46 UTC ---
there is need to puppetize some "randomizer" which would make each instance
have this default time different a bit, it shouldn't be hard to configure cron
to do that. If you look in /etc/crontab

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.monthly )

we could as well replace it with

25 6    * * *   root    test -x /usr/sbin/anacron || sleep $((RANDOM%800+10))
|| ( cd / && run-parts --report /etc/cron.daily )

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to