[mythtv-users] mythconverg database maintenance and backup

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Jan 15 13:07:46 UTC 2018


On Mon, 15 Jan 2018 12:31:01 +0000, you wrote:


>So I waited until after 6:25 this morning and my scripts didn't run. Only one entry in syslog about cron.daily running.
>
>About 6:55 I decided to reboot the server.  While readingemail I got one at 7:16 that my database had been backed up and I checked syslog again and at 7:01 my cron.daily jobs ran correctly and the backup was in the right place.
>
>I have no idea why it ran at 7:01 and not 6:25 as crontab has setup.
>
>Strange,
>
>Jim A

Anacron will run the jobs in the /etc/cron.daily directory in order,
one after the other.  So if there are previous jobs that take a while,
the database backup will be delayed while they are run.

Anacron runs the daily jobs once a day, either at the time specified,
or shortly after boot.  The latter is for systems that are not always
on, such as laptops.  You can control Anacron by editing its files in
/var/spool/anacron.  The cron.* files contain the last date anacron
ran those directories.  You can adjust the datestamps to prevent
anacron from running after your reboot.  You can also do a "ps -e |
grep anacron" to find anacron's pid and kill it after a reboot.  Then
it will run again at the normal times instead of soon after the
reboot.


More information about the mythtv-users mailing list