On a sunny day (Sun, 16 Feb 2020 15:05:41 +0000) it happened Adam Funk
wrote in :
>I want the cron.daiy jobs to run earlier in the morning than they do
>by default. I used to do this by editing the time in
>/etc/cron.d/anacron, but that no longer works; nor does changing the
>time in the cron.daily line of /etc/crontab. How is this controlled
>now?
>
>Thanks
Not sure your buster is same as my buster as I modify things from install time
onwards,
but
as root in /root I edit:
crtab
to make any changes,
then run
crontab crtab
In my crtab it says for daily:
#MIN HOUR DAY MONTH DAYOFWEEK COMMAND
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
So changing 40 4 * * * to say 40 3 * * *
should run daily stuff at 3 o'clock.
Again I copied crtab from my other systems so maybe it is different on your
system.
Finally run
crontab -l
to see if you made any typos.
In my crtab there are now many enries for things that need happening at
different times,
thing is on 24/7
AFAIK this has been the Unix way for many decennia.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|