Re: cron.daily stopped working
On Mon, 2021-10-18 at 11:06 +0200, Oliver Schwabedissen wrote:
Am 18.10.21 um 10:17 schrieb Danilo Spinella:
On Mon, 2021-10-18 at 06:32 +0200, Oliver Schwabedissen wrote:
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?
Yes. My system is not runng 24/7. It is switched on automatically at 2am UTC, performs a backup job (started by a root cronjob and shuts down after backup. I manually switch it on around 6:30 and, since I'm still working in home office, runs all the day. Daily jobs are not executed. So it may be possible that daily jobs are only executed at midnight.
Cron is only for systems running 24/7. You should use anacron instead (which is provided by cronie-anacron).
Regards,
Oliver
-- Best Regards Danilo Spinella Software Engineer in Packaging SUSE Software Solutions Italy Srl.
participants (1)
-
Danilo Spinella