[mythtv-users] Randomizing startup times for mythfilldatabase from cron
Ramon Redondo
malinon at gmail.com
Tue Feb 14 13:36:49 UTC 2006
On 2/13/06, Yeechang Lee <ylee at pobox.com> wrote:
>
> Greg Estabrooks <greg at phaze.org> says:
> > > So when is the best time to be running the cron job for retrieving
> > > listings?
> >
> > Don't use a cronjob, use the built in ability for the backend to run
> > mythfilldatabase itself. It will honour the suggested downlaod time
> > from zap2it and allow them to spread their load.
>
> And, for those of us who are still holding off on upgrading to 0.19
> for one reason or another and are still using crontab, do what I do,
> based on the recommendation in Jarod Wilson's guide:
>
> ### Run mythfilldatabase every night randomly in a 4-hour block after
> 3:01am
> 01 3 * * * sleep $(expr $RANDOM \% 14400) && mythfilldatabase >
> /var/log/mythtv/mythfilldatabase.log 2>&1
>
> I'm a little surprised, based on the discussions I see here, of the
> number of people who apparently *weren't* doing something like this
> already; go figure.
I'm a little suprised at the number of people who are 'waiting for 0.19'
before letting Myth schedule their database pulldowns. It's been there
since at _least_ 0.18. Sure, the 'suggested time' won't be used, but they
already support a random pull-down with a specified time range.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060214/5fde3186/attachment.htm
More information about the mythtv-users
mailing list