[mythtv-users] anacron time change after upgrade to Ubuntu 18.04

Jerome Yuzyk jerome at supernet.ab.ca
Wed Nov 7 21:23:17 UTC 2018


On Wednesday, November 7, 2018 9:33:59 AM MST Jerry wrote:
> On Wed, Nov 7, 2018 at 7:20 AM Jim Abernathy <jfabernathy at gmail.com> wrote:
> > I think the answer is to remove my database backup and optimize commands
> > from /etc/cron.daily and put them back in my $HOME directory.
> > 
> > Then create a new entry in the /etc/crontab that just executes those
> > commands when I want them to run.
> 
> +1 for simplicity.
> 
> I like /etc/crontab myself.  It's easier to put each user's jobs in one
> place (I'm the only one who schedules jobs).  It's simple to copy that file
> and save it somewhere just in case, and it's easier when upgrading a
> machine.  I use regular crontab when I have to on some embedded machines,
> but I try to use /etc/crontab whenever possible.

I second that. Just 1 file, stay away from /etc/cron.{hourly,daily,monthly}, 
let the system use them. Use FOO=bar settings near the top of the file to 
define the paths to things that will be run and $FOO on the entry lines. Use 
separator lines by hour and some formatting to make the whole thing easy to 
read. Don't be afraid to use spaces and tabs to line things up nicely.

In addition I automatically comment out everything in /etc/anacrontab ever 
since Fedora started making it actually do something some ways back. It's 
still useful to catch up with cron jobs after a reboot though, AFAICT.


-- 
A little of Jerome's MythTV World: http://mythtv.bss.ab.ca




More information about the mythtv-users mailing list