On Mon, 2021-10-18 at 06:32 +0200, Oliver Schwabedissen wrote:
Am 17.10.21 um 20:50 schrieb JA McInnes:
My daily weekly and monthly cron jobs recently stopped working. Around October 3. It looks like the jobs only run now if the computer is on at exactly 12AM. Is this the change that was discussed back in July, about run-parts?
-a TW user
I noticed the same behavior here after the update from cronie-1.5.5- 84.4 to cronie-1.5.7-85.1 (installed 09/06/21). The new syntax in /etc/crontab @hourly root run-parts /etc/cron.hourly @daily root run-parts /etc/cron.daily @weekly root run-parts /etc/cron.weekly @monthly root run-parts /etc/cron.monthly doesn't work here. System is switched on by BIOS at 2am (UTC) for daily backup and runs for 20-30 minutes, but no cron jobs are executed (also not during the day).
Are you also referring to daily jobs when you say that they are not run during the day? Or there are some jobs in cron.hourly that are not executed?
So I went back to -*/15 * * * * root test -x /usr/libexec/cron/run-crons && /usr/libexec/cron/run-crons >/dev/null 2>&1 which works fine. "run-parts --test /etc/cron.daily/" shows all scripts in /etc/cron.daily (for some reason it will not show any file names containing a ".", so /etc/cron.daily "cron-script.sh" will not show up).
My guess is that cronie @daily executes jobs at midnight, hence they are not being executed at 2am. run-crons instead ran every 15 minutes and if more than a day has passed since a job had been executed, than cronie will run it.
Regards, Oliver
-- Best Regards Danilo Spinella Software Engineer in Packaging SUSE Software Solutions Italy Srl.