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

systemd+anacron breaks cron jobs?



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?


Here is some journal excerpt:
Dec 03 00:23:54 alfa systemd[1]: anacron.service: State 'stop-sigterm' timed out. Killing.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 8919 (anacron) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 9249 (sh) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 9250 (run-parts) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 9409 (local) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14049 (sudo) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14050 (dumpnews) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14067 (sort) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14068 (tar) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14069 (xz) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Main process exited, code=killed, status=9/KILL
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 9249 (sh) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 9250 (run-parts) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14049 (sudo) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14050 (dumpnews) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14067 (sort) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14068 (tar) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Killing process 14069 (xz) with signal SIGKILL.
Dec 03 00:23:54 alfa systemd[1]: anacron.service: Failed with result 'timeout'.

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
A rolling disk gathers no MOS.


Reply to: