[mythtv-users] Daily cron jobs not running on MythBackend

Bill Meek keemllib at gmail.com
Sun Feb 16 23:27:45 UTC 2014


On 02/16/2014 05:06 PM, Phill Edwards wrote:
>>
>>
>> Is there any reason to use anacron, as opposed to just standard cron? Is
>> this a system that will frequently be powered off?
>>
>>
> I've used anacron in the past a lot (but not had the problem of it not
> running). It's a very convenient way of running daily scripts by just
> dropping them into /etc/cron.daily/.

In my *buntu backend:

anacron and cron are both started out of .conf files in /etc/init.

Per man anacron, it exits "When there are no more jobs to be run".

cron keeps running. I believe the Upstart run of anacron is used to
'catch up' on jobs that would have run if the system hadn't been
shutdown. After that cron runs it.

If you look in /etc/crontab, you'll see lines like this:

     25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily)

that will run anacron. Good for those of us that shutdown
MythTV backends when they're idle.

Doesn't fix your problem, but may point you in the right direction.

-- 
Bill


More information about the mythtv-users mailing list