Web lists-archives.com

Re: systemd+anacron breaks cron jobs?




Kamil Jońca wrote:

> 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'.

Looks like systemd is trying to interpret the command from the cronjob and
it does not manage to handle it. I do not use systemd, but I read that you
need to update scripts to match the systemd logic, so it might be you
should rewrite this or other wise tell systemd to ignore it.

regards