[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemd+anacron breaks cron jobs?



On Monday, December 3, 2018 at 1:30:07 PM UTC+5:30, Kamil Jońca wrote:
> I have in my /etc/cron.daily some local scripts.
> Some of them can be occassionally time-consuming.
> Recently I found that some of them did not end.
> And what I found:
> 1. as "everybody" knows, in case of anacron presence, system cron jobs
> are delegated to anacron.
> 2. recently in Debian we have anacron.timer which also runs "cron.daily"
>    entry.
> 3. there is a timeout in systemd services which cause to kill my jobs :(
> 
> So my question is: is it safe to remove/disable anacron timer?

Best bet is switch to using systemd timers
https://medium.com/horrible-hacks/using-systemd-as-a-better-cron-a4023eea996d

https://unix.stackexchange.com/questions/84858/systemd-timer-units-that-mimic-anacron-behaviour


Reply to: